summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-09 12:00:42 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-09 12:00:42 +0000
commitd687886c24eb0d8325e0568f4a6ed304c4011966 (patch)
treef236533ed580c999a32525392f2261bf02eacb2c /src/HttpRequestCommand.cc
parent420500f6bf53e0fafc6660deaa014b425af13fe7 (diff)
2010-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
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
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc3
1 files changed, 2 insertions, 1 deletions
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;
}