QNetworkReply::setReadBufferSize fix for threaded http
authorMartin Petersson <Martin.Petersson@nokia.com>
Mon, 7 May 2012 10:41:58 +0000 (12:41 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 May 2012 08:38:25 +0000 (10:38 +0200)
commita050bba2f0151beb508fa7ab6f58c25c4e92bfb0
tree82d65e9f02bccac3e847d0824092c779b92369c9
parent1211fd0b6116ca64468780bff12e7902576ab041
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>
src/network/access/qhttpnetworkreply.cpp
src/network/access/qhttpnetworkreply_p.h
src/network/access/qhttpthreaddelegate.cpp
src/network/access/qhttpthreaddelegate_p.h
src/network/access/qnetworkreplyhttpimpl.cpp
src/network/access/qnetworkreplyhttpimpl_p.h