QWebsocket disconnect signal getting after a particular time delay
Unsolved
General and Desktop
-
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?