diff options
author | Martin Petersson <Martin.Petersson@nokia.com> | 2012-05-07 12:41:58 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-11 10:38:25 +0200 |
commit | a050bba2f0151beb508fa7ab6f58c25c4e92bfb0 (patch) | |
tree | 82d65e9f02bccac3e847d0824092c779b92369c9 /src/network/access/qhttpthreaddelegate_p.h | |
parent | 1211fd0b6116ca64468780bff12e7902576ab041 (diff) |
QNetworkReply::setReadBufferSize fix for threaded http
Added the setReadBufferSize functionallity again by limiting the
amount that the delegate read from the channel. Each time that data is
fetched from the reply buffer, we communicate back to the thread so
that more data can be fetched.
Task-number: QTBUG-25327
Change-Id: I2f9950196e64acd09bc8da50c1116f2c9deacad4
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/network/access/qhttpthreaddelegate_p.h')
-rw-r--r-- | src/network/access/qhttpthreaddelegate_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/access/qhttpthreaddelegate_p.h b/src/network/access/qhttpthreaddelegate_p.h index 036d5b94c6..7ac927ab1f 100644 --- a/src/network/access/qhttpthreaddelegate_p.h +++ b/src/network/access/qhttpthreaddelegate_p.h @@ -93,6 +93,8 @@ public: #endif QHttpNetworkRequest httpRequest; qint64 downloadBufferMaximumSize; + qint64 readBufferMaxSize; + qint64 bytesEmitted; // From backend, modified by us for signal compression QSharedPointer<QAtomicInt> pendingDownloadData; QSharedPointer<QAtomicInt> pendingDownloadProgress; @@ -145,6 +147,9 @@ public slots: // This are called via QueuedConnection from user thread void startRequest(); void abortRequest(); + void readBufferSizeChanged(qint64 size); + void readBufferFreed(qint64 size); + // This is called with a BlockingQueuedConnection from user thread void startRequestSynchronously(); protected slots: |