From d687886c24eb0d8325e0568f4a6ed304c4011966 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 9 Sep 2010 12:00:42 +0000 Subject: 2010-09-09 Tatsuhiro Tsujikawa Moved connectedHostname, connectedAddr and connectedPort to Request object. Mark cached IP address bad on timeout to allow aria2 to renew IP address cache. * src/AbstractCommand.cc * src/AbstractProxyRequestCommand.cc * src/AbstractProxyRequestCommand.h * src/FtpInitiateConnectionCommand.cc * src/FtpNegotiationCommand.cc * src/FtpNegotiationCommand.h * src/HttpInitiateConnectionCommand.cc * src/HttpRequestCommand.cc * src/HttpRequestCommand.h * src/InitiateConnectionCommand.cc * src/InitiateConnectionCommand.h * src/Request.cc * src/Request.h --- src/HttpRequestCommand.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/HttpRequestCommand.cc') diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index bf6ce6d9..852f6bb1 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -131,7 +131,8 @@ bool HttpRequestCommand::executeInternal() { } if(httpConnection_->sendBufferIsEmpty()) { if(!checkIfConnectionEstablished - (getSocket(), connectedHostname_, connectedAddr_, connectedPort_)) { + (getSocket(), getRequest()->getConnectedHostname(), + getRequest()->getConnectedAddr(), getRequest()->getConnectedPort())) { return true; } -- cgit