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. QWebsocket disconnect signal getting after a particular time delay

QWebsocket disconnect signal getting after a particular time delay

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 219 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.
  • R Offline
    R Offline
    Renjith R
    wrote on last edited by
    #1

    I am using Qt 5.15.2 in Linux. When the network connection fails/error occurs, the QWebsocket will wait for some time(~15min) to emit the disconnected signal. Till that time the state will remain as connected. And for detecting the server I send a ping every 1 min. Pong is not emitted(because the network is not connected). The same code run on a windows machine with a delay of less than 20 sec and emitted the disconnected signal.

    Why QWebsocket wait for emitting the disconnected signal? Is the delay of ~15min default in Linux Or Did I miss something to configure a timeout parameter?

    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