-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5
-
904b76d95 (tqtc/lts-6.5), 7e106fa8d (tqtc/lts-6.5)
-
Foundation Sprint 134, Foundation Sprint 135
A customer reported that when they try to connect to a httpserver with a websocket, they can get the connection on server side OK but the server pretty much instantly closes the socket.
Steps to reproduce the issue:
- Run server
- Run client
=> Observe the client output
When building server with Qt 6.8.3 and adding:
s.addWebSocketUpgradeVerifier(&s, [](const QHttpServerRequest &request) { return QHttpServerWebSocketUpgradeResponse::accept(); });
the sample will work. The connection will no longer be closed and and the message from the server can now be received.