summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-11-19 12:18:46 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-19 12:20:41 (GMT)
commite25fc80ffe9d4f4d8403ff2f43ada770fb32b03b (patch)
treecb985c252c6ca7e0271646721710bc003d52845d
parent114efc17bcc32bebf5639d5d2ef8a543bb9fe952 (diff)
downloadQt-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.cpp2
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;