diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2015-09-07 16:54:59 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2015-09-09 18:44:09 +0000 |
commit | aaab800e1651fc9f04d62a76eda9b8cafbbe14c0 (patch) | |
tree | c72ddbfca7785f2cbabbf42176a40e6acb49989c /src/network/socket/qabstractsocket_p.h | |
parent | 25c0fdc885c675c0253adc4d8a7b528ad88e49e3 (diff) |
QAbstractSocket: try to send all data on flush()
Internal write buffer may have multiple blocks of data which wait a
transmission. In this case, ensuring a single write() is not enough to
flush the buffer completely. Allow several attempts that aim to write
as much as possible data from the buffer to the underlying network
socket.
Change-Id: I34b5ec65abe42853906168cdb05f793bd51162ec
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/socket/qabstractsocket_p.h')
-rw-r--r-- | src/network/socket/qabstractsocket_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/socket/qabstractsocket_p.h b/src/network/socket/qabstractsocket_p.h index 93724ae29e..c0662f01b4 100644 --- a/src/network/socket/qabstractsocket_p.h +++ b/src/network/socket/qabstractsocket_p.h @@ -135,6 +135,7 @@ public: void fetchConnectionParameters(); void setupSocketNotifiers(); bool readFromSocket(); + bool writeToSocket(); void emitReadyRead(); qint64 readBufferMaxSize; |