summaryrefslogtreecommitdiff
path: root/src/HttpSkipResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-17 09:26:47 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-17 09:26:47 +0000
commit77d892d7f20bb484f3da148a7f2cb57429066c28 (patch)
tree2339a298e21809f7d8eba028a9baeda8e95c8db9 /src/HttpSkipResponseCommand.cc
parent7c6ed037e3fad09b19915120516a39b55045059d (diff)
2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Don't pool connection if HTTP proxy is enabled. * src/FtpFinishDownloadCommand.cc * src/FtpNegotiationCommand.cc * src/HttpSkipResponseCommand.cc
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
-rw-r--r--src/HttpSkipResponseCommand.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc
index 8c263944..6272b09a 100644
--- a/src/HttpSkipResponseCommand.cc
+++ b/src/HttpSkipResponseCommand.cc
@@ -48,6 +48,8 @@
#include "StringFormat.h"
#include "DlAbortEx.h"
#include "HttpHeader.h"
+#include "prefs.h"
+#include "Option.h"
namespace aria2 {
@@ -111,7 +113,8 @@ bool HttpSkipResponseCommand::executeInternal()
|| (_transferDecoder.isNull() && _totalLength == _receivedBytes)) {
if(!_transferDecoder.isNull()) _transferDecoder->end();
- if(req->supportsPersistentConnection()) {
+ if(!e->option->getAsBool(PREF_HTTP_PROXY_ENABLED) &&
+ req->supportsPersistentConnection()) {
std::pair<std::string, uint16_t> peerInfo;
socket->getPeerInfo(peerInfo);
e->poolSocket(peerInfo.first, peerInfo.second, socket);