diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-07-22 08:40:42 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-07-23 10:18:38 (GMT) |
commit | 23fcdf1a78d981a6d986a907450b71a82bed5efa (patch) | |
tree | 8c2249ea8aa7538bcd2f7bfaa94f3a4f5ebd645a | |
parent | d6a01d0f948361ac5cacab0bf9f8585041485259 (diff) | |
download | Qt-23fcdf1a78d981a6d986a907450b71a82bed5efa.zip Qt-23fcdf1a78d981a6d986a907450b71a82bed5efa.tar.gz Qt-23fcdf1a78d981a6d986a907450b71a82bed5efa.tar.bz2 |
QFtp: Also set LowDelay option on the control socket
Reviewed-by: Thiago
-rw-r--r-- | src/network/access/qftp.cpp | 3 |
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); } |