From a8818493d4c782527dec7c30e9688d0e45a21351 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Tue, 19 Oct 2010 16:38:48 +0200 Subject: QNAM HTTP: Also resume uploads after connection pause Reviewed-by: Peter Hartmann Reviewed-by: Prasanth Task-Number: QTBUG-13234 --- src/network/access/qhttpnetworkconnection.cpp | 7 ++++--- 1 file 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(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); -- cgit v0.12