Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebSocketServer, WAIT_CLOSE socket state problem

QWebSocketServer, WAIT_CLOSE socket state problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 396 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #1

    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:

    QWebSocket::open
    

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved