summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-07-22 08:40:42 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-07-23 10:18:38 (GMT)
commit23fcdf1a78d981a6d986a907450b71a82bed5efa (patch)
tree8c2249ea8aa7538bcd2f7bfaa94f3a4f5ebd645a /src/network/access
parentd6a01d0f948361ac5cacab0bf9f8585041485259 (diff)
downloadQt-23fcdf1a78d981a6d986a907450b71a82bed5efa.zip
Qt-23fcdf1a78d981a6d986a907450b71a82bed5efa.tar.gz
Qt-23fcdf1a78d981a6d986a907450b71a82bed5efa.tar.bz2
QFtp: Also set LowDelay option on the control socket
Reviewed-by: Thiago
Diffstat (limited to 'src/network/access')
-rw-r--r--src/network/access/qftp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/access/qftp.cpp b/src/network/access/qftp.cpp
index 35e0a18..421e671 100644
--- a/src/network/access/qftp.cpp
+++ b/src/network/access/qftp.cpp
@@ -869,6 +869,9 @@ void QFtpPI::connected()
#if defined(QFTPPI_DEBUG)
// qDebug("QFtpPI state: %d [connected()]", state);
#endif
+ // try to improve performance by setting TCP_NODELAY
+ commandSocket.setSocketOption(QAbstractSocket::LowDelayOption, 1);
+
emit connectState(QFtp::Connected);
}