From 92f84f71f575fe4548f4a43575fbf49ce7d50d26 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 21 May 2010 13:54:50 +0000 Subject: 2010-05-21 Tatsuhiro Tsujikawa Fixed the bug that connection pooling does not take into account proxy. This means that when connection A via proxy X is pooled, it will be wrongly reused in the download using proxy Y. * src/DownloadEngine.cc * src/DownloadEngine.h * src/FtpFinishDownloadCommand.cc * src/FtpInitiateConnectionCommand.cc * src/FtpNegotiationCommand.cc * src/HttpDownloadCommand.cc * src/HttpInitiateConnectionCommand.cc * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc --- src/HttpDownloadCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HttpDownloadCommand.cc') diff --git a/src/HttpDownloadCommand.cc b/src/HttpDownloadCommand.cc index 20811f41..b43c931e 100644 --- a/src/HttpDownloadCommand.cc +++ b/src/HttpDownloadCommand.cc @@ -98,7 +98,7 @@ bool HttpDownloadCommand::prepareForNextSegment() { // pool terminated socket. In HTTP/1.1, keep-alive is default, // so closing connection without Connection: close header means // that server is broken or not configured properly. - e->poolSocket(req, isProxyDefined(), socket); + e->poolSocket(req, createProxyRequest(), socket); } // The request was sent assuming that server supported pipelining, but // it turned out that server didn't support it. -- cgit