diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-19 12:18:46 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-19 12:20:41 (GMT) |
commit | e25fc80ffe9d4f4d8403ff2f43ada770fb32b03b (patch) | |
tree | cb985c252c6ca7e0271646721710bc003d52845d | |
parent | 114efc17bcc32bebf5639d5d2ef8a543bb9fe952 (diff) | |
download | Qt-e25fc80ffe9d4f4d8403ff2f43ada770fb32b03b.zip Qt-e25fc80ffe9d4f4d8403ff2f43ada770fb32b03b.tar.gz Qt-e25fc80ffe9d4f4d8403ff2f43ada770fb32b03b.tar.bz2 |
QNAM HTTP Code: Use KeepAlive socket option
Reviewed-by: TrustMe
-rw-r--r-- | src/network/access/qhttpnetworkconnectionchannel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qhttpnetworkconnectionchannel.cpp b/src/network/access/qhttpnetworkconnectionchannel.cpp index 852f41f..fa89fcc 100644 --- a/src/network/access/qhttpnetworkconnectionchannel.cpp +++ b/src/network/access/qhttpnetworkconnectionchannel.cpp @@ -774,6 +774,8 @@ void QHttpNetworkConnectionChannel::_q_connected() { // improve performance since we get the request sent by the kernel ASAP socket->setSocketOption(QAbstractSocket::LowDelayOption, 1); + // not sure yet if it helps, but it makes sense + socket->setSocketOption(QAbstractSocket::KeepAliveOption, 1); pipeliningSupported = QHttpNetworkConnectionChannel::PipeliningSupportUnknown; |