summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qhttpsocketengine.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-06-10 16:08:40 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-06-10 16:08:40 (GMT)
commitba7e9504b6e92121f514a88fc31f61da54f25817 (patch)
treef244bd3b89a9ed5f044a3516ee5015b72c9efce6 /src/network/socket/qhttpsocketengine.cpp
parent267e7ca0e586eb63c62deac94f8412db962d621d (diff)
parente97cacf23bc3910fd3368563afa97fed0e2597a5 (diff)
downloadQt-ba7e9504b6e92121f514a88fc31f61da54f25817.zip
Qt-ba7e9504b6e92121f514a88fc31f61da54f25817.tar.gz
Qt-ba7e9504b6e92121f514a88fc31f61da54f25817.tar.bz2
Merge remote-tracking branch 'mainline/4.8'
Diffstat (limited to 'src/network/socket/qhttpsocketengine.cpp')
-rw-r--r--src/network/socket/qhttpsocketengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/socket/qhttpsocketengine.cpp b/src/network/socket/qhttpsocketengine.cpp
index 5f5db17..5c672ec 100644
--- a/src/network/socket/qhttpsocketengine.cpp
+++ b/src/network/socket/qhttpsocketengine.cpp
@@ -149,6 +149,8 @@ bool QHttpSocketEngine::connectInternal()
// Handshake isn't done. If unconnected, start connecting.
if (d->state == None && d->socket->state() == QAbstractSocket::UnconnectedState) {
setState(QAbstractSocket::ConnectingState);
+ //limit buffer in internal socket, data is buffered in the external socket under application control
+ d->socket->setReadBufferSize(65536);
d->socket->connectToHost(d->proxy.hostName(), d->proxy.port());
}