Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.3.0
-
None
-
Google Chrome 32.0.1700.107 m
Safari 7.0.1 (9537.73.11)
Firefox 26.0
-
ab9c90681aaa0950fb54e6dcf67f94f789d7162d
Description
It seems like QWebSocketHandshakeRequest::readHandshake() fails if cant read the whole GET http request right now.
When I'm using Chrome as client I see that first textStream.readLine()in QWebSocketHandshakeRequest::readHandshake() returns only "G" instead of full http request so function returns false.
If insert line:
if (pTcpSocket->bytesAvailable() < 150) return;
into the slot QWebSocketServerPrivate::handshakeReceived() before disconnect from QTcpSocket::readyRead() then connection was successfull.
Attachments
Issue Links
- relates to
-
QTBUG-57665 Ssl WebSockets random unconnected state with Firefox/Edge
-
- Reported
-
For Gerrit Dashboard: QTBUG-36757 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
78134,1 | Use queued connection for readyRead connection | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
78292,1 | Fix Google Chrome connection problem | dev | qt/qtwebsockets | Status: ABANDONED | 0 | 0 |
80414,2 | Fix Google Chrome connection problem | stable | qt/qtwebsockets | Status: MERGED | +2 | 0 |