diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2009-10-27 15:06:36 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2009-10-27 15:50:30 (GMT) |
commit | 2c672ea518265496a0fc7c5de63ca7dda880dd85 (patch) | |
tree | 129936f2e10b7d7b5c944ef2265e3cef76d67254 /src/network/socket/qabstractsocket_p.h | |
parent | 2d0b29c312ddf422595ce9debb3678bb5c4d51b6 (diff) | |
download | Qt-2c672ea518265496a0fc7c5de63ca7dda880dd85.zip Qt-2c672ea518265496a0fc7c5de63ca7dda880dd85.tar.gz Qt-2c672ea518265496a0fc7c5de63ca7dda880dd85.tar.bz2 |
QAbstractSocket: insert timer to prevent timeout
This fixes a timeout that occurred on Mac with the gui event dispatcher:
we were waiting for a write notification, but timed out when we were in
closing state and still waiting for the socket engine to complete
writing.
Now we close the socket anyway after 2 seconds.
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/network/socket/qabstractsocket_p.h')
-rw-r--r-- | src/network/socket/qabstractsocket_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/socket/qabstractsocket_p.h b/src/network/socket/qabstractsocket_p.h index 8ccddd3..acf82bf 100644 --- a/src/network/socket/qabstractsocket_p.h +++ b/src/network/socket/qabstractsocket_p.h @@ -93,6 +93,7 @@ public: void _q_startConnecting(const QHostInfo &hostInfo); void _q_testConnection(); void _q_abortConnectionAttempt(); + void _q_forceDisconnect(); bool readSocketNotifierCalled; bool readSocketNotifierState; @@ -148,6 +149,7 @@ public: int blockingTimeout; QTimer *connectTimer; + QTimer *disconnectTimer; int connectTimeElapsed; int hostLookupId; |