-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.5.0 Alpha
-
None
-
30b5e99da347aea446a5a3a334a21a4406adc4fe
QWebSocketPrivate::QWebSocketPrivate(const QString &origin, QWebSocketProtocol::Version version, QWebSocket *pWebSocket) does not initialize the m_handshakeState field.
This causes the first call to QWebSocket::processHandshake to skip the state switch, and in the final method check to emit the error signal while resetting m_handshakeState to AllDoneState. From there on, things work.
For Gerrit Dashboard: QTBUG-44893 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
108126,5 | Always initialize m_handshakeState | 5.5 | qt/qtwebsockets | Status: MERGED | +2 | 0 |
108147,1 | Initialize m_handshakeState in one constructor of QWebSocketPrivate | 5.5 | qt/qtwebsockets | Status: ABANDONED | 0 | 0 |