diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2009-12-15 09:52:52 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2010-01-11 09:48:05 (GMT) |
commit | 145fecc833926c307819752912e6833169799a53 (patch) | |
tree | e527d59a10244b7b6c71b8e63c5019a7dd34c2e4 /src/network/access/qhttpnetworkconnectionchannel_p.h | |
parent | ef5a985cf47c32bac0ddd3bae1edb7e922e7ec69 (diff) | |
download | Qt-145fecc833926c307819752912e6833169799a53.zip Qt-145fecc833926c307819752912e6833169799a53.tar.gz Qt-145fecc833926c307819752912e6833169799a53.tar.bz2 |
network internals: start HTTP GET requests right away when called
on the code path from QNetworkAccessManager::get() to
QTcpSocket::write() there were two calls involved that were invoked
via a QueuedConnection, which would in some occasions delay writing the
data to the socket. This patch makes sure the data is written to the
socket immediately, without returning to the event loop (only the HTTP
backend was changed for that event, the other backends were not
changed)
Reviewed-by: Thiago Macieira
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/access/qhttpnetworkconnectionchannel_p.h')
-rw-r--r-- | src/network/access/qhttpnetworkconnectionchannel_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnectionchannel_p.h b/src/network/access/qhttpnetworkconnectionchannel_p.h index bbe43cd..c30c236 100644 --- a/src/network/access/qhttpnetworkconnectionchannel_p.h +++ b/src/network/access/qhttpnetworkconnectionchannel_p.h @@ -144,7 +144,6 @@ public: void close(); bool sendRequest(); - void receiveReply(); bool ensureConnection(); @@ -166,6 +165,7 @@ public: bool isSocketReading() const; protected slots: + void _q_receiveReply(); void _q_bytesWritten(qint64 bytes); // proceed sending void _q_readyRead(); // pending data to read void _q_disconnected(); // disconnected from host |