path: root/src/network/socket/qabstractsocket_p.h
diff options
authorAlex Trotsenko <>2015-09-07 16:54:59 +0300
committerAlex Trotsenko <>2015-09-09 18:44:09 +0000
commitaaab800e1651fc9f04d62a76eda9b8cafbbe14c0 (patch)
treec72ddbfca7785f2cbabbf42176a40e6acb49989c /src/network/socket/qabstractsocket_p.h
parent25c0fdc885c675c0253adc4d8a7b528ad88e49e3 (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 <>
Diffstat (limited to 'src/network/socket/qabstractsocket_p.h')
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;