diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-10-19 14:38:48 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-10-27 12:40:27 (GMT) |
commit | a8818493d4c782527dec7c30e9688d0e45a21351 (patch) | |
tree | d090687c31f854f5cdd152cf41d6fb1e85bde217 /src/network/access | |
parent | 04cc5144a8d1d1eb51fb627327e155649ba2ce45 (diff) | |
download | Qt-a8818493d4c782527dec7c30e9688d0e45a21351.zip Qt-a8818493d4c782527dec7c30e9688d0e45a21351.tar.gz Qt-a8818493d4c782527dec7c30e9688d0e45a21351.tar.bz2 |
QNAM HTTP: Also resume uploads after connection pause
Reviewed-by: Peter Hartmann
Reviewed-by: Prasanth
Task-Number: QTBUG-13234
Diffstat (limited to 'src/network/access')
-rw-r--r-- | src/network/access/qhttpnetworkconnection.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp index f6cb530..8e8c34d 100644 --- a/src/network/access/qhttpnetworkconnection.cpp +++ b/src/network/access/qhttpnetworkconnection.cpp @@ -145,10 +145,11 @@ void QHttpNetworkConnectionPrivate::resumeConnection() QSslSocketPrivate::resumeSocketNotifiers(static_cast<QSslSocket*>(channels[i].socket)); else QAbstractSocketPrivate::resumeSocketNotifiers(channels[i].socket); - } - // Resume uploads - // FIXME + // Resume pending upload if needed + if (channels[i].state == QHttpNetworkConnectionChannel::WritingState) + QMetaObject::invokeMethod(&channels[i], "_q_uploadDataReadyRead", Qt::QueuedConnection); + } // queue _q_startNextRequest QMetaObject::invokeMethod(this->q_func(), "_q_startNextRequest", Qt::QueuedConnection); |