summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-09-01 16:14:15 +0200
committerDavid Boddie <dboddie@trolltech.com>2009-09-01 16:14:15 +0200
commit45b3c4c151ad5c4d7361aa331bb4184bbed23681 (patch)
tree5ef4ad5af556a381a03d6e5d03663fdfd90a1fcf
parent32619ba293c4d7f186ace3a4af3df6ab039ea135 (diff)
parent5632ba903c1b31717b4fabdfc2a3c8b710b5cbf1 (diff)
downloadqt4-tools-45b3c4c151ad5c4d7361aa331bb4184bbed23681.tar.gz
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
-rw-r--r--src/network/socket/qnativesocketengine.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/network/socket/qnativesocketengine.cpp b/src/network/socket/qnativesocketengine.cpp
index 3e56995d7e..3d9aa61f65 100644
--- a/src/network/socket/qnativesocketengine.cpp
+++ b/src/network/socket/qnativesocketengine.cpp
@@ -389,10 +389,19 @@ bool QNativeSocketEngine::initialize(QAbstractSocket::SocketType socketType, QAb
qWarning("QNativeSocketEngine::initialize unable to inline out-of-band data");
}
- // Set the send and receive buffer sizes to a magic size, found
- // most optimal for our platforms.
- setReceiveBufferSize(49152);
- setSendBufferSize(49152);
+ // Before Qt 4.6, we always set the send and receive buffer size to 49152 as
+ // this was found to be an optimal value. However, modern OS
+ // all have some kind of auto tuning for this and we therefore don't set
+ // this explictly anymore.
+ // If it introduces any performance regressions for Qt 4.6.x (x > 0) then
+ // it will be put back in.
+ //
+ // You can use tests/manual/qhttpnetworkconnection to test HTTP download speed
+ // with this.
+ //
+ // pre-4.6:
+ // setReceiveBufferSize(49152);
+ // setSendBufferSize(49152);
d->socketType = socketType;
d->socketProtocol = protocol;