diff options
author | Jaakko Koskenkorva <jaakko.koskenkorva@nokia.com> | 2011-05-31 17:34:39 +0300 |
---|---|---|
committer | Jaakko Koskenkorva <jaakko.koskenkorva@nokia.com> | 2011-05-31 17:34:39 +0300 |
commit | c2022fa4cda76ba839b7ffe0f325da5c87efc916 (patch) | |
tree | b81026b9e28adf496a42782fab5dcd27f1683eac /src/network/ssl | |
parent | daba0c0d588c55e3f1591ab8ce0ef0946d1447fd (diff) | |
download | qt4-tools-c2022fa4cda76ba839b7ffe0f325da5c87efc916.tar.gz |
Increase SSL readbuffer 1 -> 16 kB
Reading incoming data in Symbian is slow when it is done from the native RSocket in 1kB blocks.
Typically other native apps use 16 kB or even 24 kB (browser).
This contributes (among other slow tasks such as writing to mass memory) to the TCP window filling up.
This case, even though it should be recoverable, has proven to be problematic in some scenarios including downloading from Ovi Store via 3G.
The fix just increases the amount of data read, which speeds things up and makes the problematic window fill-up less common.
Reviewed-by: Shane Kearns
Task-number: QTBUG-18943
Diffstat (limited to 'src/network/ssl')
-rw-r--r-- | src/network/ssl/qsslsocket_openssl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp index 78699fccaf..565ab2cc16 100644 --- a/src/network/ssl/qsslsocket_openssl.cpp +++ b/src/network/ssl/qsslsocket_openssl.cpp @@ -1291,9 +1291,9 @@ bool QSslSocketBackendPrivate::startHandshake() sslErrors.clear(); } - // if we have a max read buffer size, reset the plain socket's to 1k + // if we have a max read buffer size, reset the plain socket's to 16k if (readBufferMaxSize) - plainSocket->setReadBufferSize(1024); + plainSocket->setReadBufferSize(16384); connectionEncrypted = true; emit q->encrypted(); |