Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.5.1
-
None
Description
Looks really similar to QTBUG-40878, but in QWebSocketServer instead of QWebSocket,
Attached main.cpp starts a simple QWebSocketServer and a simple netcat test shows that the connection is killed if the handshake arrives in multiple TCP segments, the client is disconnected after sending the first line:
$ nc -v localhost 8080 Connection to localhost 8080 port [tcp/http-alt] succeeded! GET / HTTP/1.1
but if you send the whole handshake using netcat the handshake is handler properly:
$ nc -v localhost 8080 < handshake.txt Connection to localhost 8080 port [tcp/http-alt] succeeded! HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo= Server: main Access-Control-Allow-Credentials: false Access-Control-Allow-Methods: GET Access-Control-Allow-Headers: content-type Access-Control-Allow-Origin: http://127.0.0.1/ Date: Wed, 09 Sep 2015 07:24:35 GMT you're being processed...
Attachments
Issue Links
- is duplicated by
-
QTBUG-48874 websocket server
- Closed
- relates to
-
QTBUG-80700 QWebSockets: Share/improve header-parsing code
- Closed