try to improve

see: #23
This commit is contained in:
Markus Sattler
2015-12-05 11:43:03 +01:00
parent 92a63e9129
commit 7a22dad9d1
4 changed files with 28 additions and 16 deletions

View File

@ -254,7 +254,11 @@ void WebSockets::handleWebsocket(WSclient_t * client) {
}
if(mask) {
client->tcp.read(maskKey, 4);
if(!readWait(client, maskKey, 4)) {
//timeout
clientDisconnect(client, 1002);
return;
}
}
if(payloadLen > 0) {