diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-04-20 08:52:13 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-04-20 11:36:18 (GMT) |
commit | 13681d67cfd7ddc8c36fa9b0b635515b1b884143 (patch) | |
tree | 20883ca3af7a9dfbf2d88e7203038901ed815a26 /src/network | |
parent | 510024019ab3b136fe76f446a7d325f998dfd35a (diff) | |
download | Qt-13681d67cfd7ddc8c36fa9b0b635515b1b884143.zip Qt-13681d67cfd7ddc8c36fa9b0b635515b1b884143.tar.gz Qt-13681d67cfd7ddc8c36fa9b0b635515b1b884143.tar.bz2 |
QNAM HTTP: Pipelining improvement
Fail earlier. Use constant that was introduced in one of the previous
commits.
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qhttpnetworkconnection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp index a6322a3..559124f 100644 --- a/src/network/access/qhttpnetworkconnection.cpp +++ b/src/network/access/qhttpnetworkconnection.cpp @@ -489,7 +489,11 @@ void QHttpNetworkConnectionPrivate::fillPipeline(QAbstractSocket *socket) int i = indexOf(socket); - if (! (defaultPipelineLength - channels[i].alreadyPipelinedRequests.length() >= 2)) { + // return fast if there was no reply right now processed + if (channels[i].reply == 0) + return; + + if (! (defaultPipelineLength - channels[i].alreadyPipelinedRequests.length() >= defaultRePipelineLength)) { return; } |