Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QWebSocketServer, WAIT_CLOSE socket state problem
luca last edited by
I have a simple client server application using websockets to communicate.
When the client loose connection it try to connect again to the server by calling:
It the internet connection is fine there is non problem but when connection drop down and the client try to reconnect many times, I get a strange behavior.
On the server side, using netstat I see a lot of:
... tcp6 0 0 192.168.11.12:27777 192.168.60.11:52391 CLOSE_WAIT ...
where 27777 is the server application socket port.
By checking server debug log message it seems it doesn't receive any socket connection.
Can you help me to understand the reason for this strange behavior?