[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kio/kio
From: Dawit Alemayehu <adawit () kde ! org>
Date: 2010-12-26 22:42:08
Message-ID: 20101226224208.51FAEAC8AD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1209481 by adawit:
- Commented out the code that attempted to do a read ahead optimization because it causes
the condition mentioned in BR# 260769.
CCMAIL:ahartmetz@gmail.com
CCBUG:260769
M +7 -6 tcpslavebase.cpp
--- trunk/KDE/kdelibs/kio/kio/tcpslavebase.cpp #1209480:1209481
@@ -267,18 +267,19 @@
}
if (!d->socket.bytesAvailable()) {
- if (d->isBlocking) {
- d->socket.waitForReadyRead(-1);
- } else {
- d->socket.waitForReadyRead(readTimeout());
+ const int timeout = d->isBlocking ? -1 : readTimeout();
+ d->socket.waitForReadyRead(timeout);
}
- } else if (d->socket.encryptionMode() != KTcpSocket::SslClientMode ||
+#if 0
+ // Do not do this because its only benefit is to cause a nasty side effect
+ // upstream in Qt. See BR# 260769.
+ else if (d->socket.encryptionMode() != KTcpSocket::SslClientMode ||
QNetworkProxy::applicationProxy().type() == QNetworkProxy::NoProxy) {
// we only do this when it doesn't trigger Qt socket bugs. When it doesn't break anything
// it seems to help performance.
d->socket.waitForReadyRead(0);
}
-
+#endif
return d->socket.read(data, len);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic