summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-23 12:16:20 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-23 12:16:20 (GMT)
commit5e8ab5a5a3eaa51263546d35210b293c56623b5e (patch)
tree52e9ca99890679fa38dafa066b6390b109385094
parent03b97ec038a12c8206f57f94fcd08c43614876e9 (diff)
parentc1b524dd8b7a7207d10c33b454519d717349ac6c (diff)
downloadQt-5e8ab5a5a3eaa51263546d35210b293c56623b5e.zip
Qt-5e8ab5a5a3eaa51263546d35210b293c56623b5e.tar.gz
Qt-5e8ab5a5a3eaa51263546d35210b293c56623b5e.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1: QNAM HTTP: Do not use TCP_NODELAY
-rw-r--r--src/network/access/qhttpnetworkconnectionchannel.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnectionchannel.cpp b/src/network/access/qhttpnetworkconnectionchannel.cpp
index 1d8224c..82bc14f 100644
--- a/src/network/access/qhttpnetworkconnectionchannel.cpp
+++ b/src/network/access/qhttpnetworkconnectionchannel.cpp
@@ -865,7 +865,14 @@ void QHttpNetworkConnectionChannel::_q_disconnected()
void QHttpNetworkConnectionChannel::_q_connected()
{
// improve performance since we get the request sent by the kernel ASAP
- socket->setSocketOption(QAbstractSocket::LowDelayOption, 1);
+ //socket->setSocketOption(QAbstractSocket::LowDelayOption, 1);
+ // We have this commented out now. It did not have the effect we wanted. If we want to
+ // do this properly, Qt has to combine multiple HTTP requests into one buffer
+ // and send this to the kernel in one syscall and then the kernel immediately sends
+ // it as one TCP packet because of TCP_NODELAY.
+ // However, this code is currently not in Qt, so we rely on the kernel combining
+ // the requests into one TCP packet.
+
// not sure yet if it helps, but it makes sense
socket->setSocketOption(QAbstractSocket::KeepAliveOption, 1);