-
-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Labels
Description
Describe the bug
#define WEBSOCKETS_CLIENT_CONNECT_WAIT_MS 100
...
ret = rfbPeekExactTimeout(cl, bbuf, 4,
WEBSOCKETS_CLIENT_CONNECT_WAIT_MS);
if ((ret < 0) && (errno == ETIMEDOUT)) {
rfbLog("Normal socket connection\n");
return TRUE;
} else if (ret <= 0) {
rfbErr("webSocketsHandshake: unknown connection error\n");
return FALSE;
}
from
libvncserver/libvncserver/websockets.c
Line 129 in 4d65ec4
WEBSOCKETS_CLIENT_CONNECT_WAIT_MS); |
To Reproduce
delay socket connection by 101ms --> connection is identified as a websocket connection.
Expected Behavior
socket connection is not detected as websocket connection even if the link is slow