Important: Please read the Qt Code of Conduct -

QWebSocketServer, WAIT_CLOSE socket state problem

  • Hi all,
    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     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?

Log in to reply