summaryrefslogtreecommitdiff
path: root/src/Request.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/Request.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/Request.cc')
-rw-r--r--src/Request.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Request.cc b/src/Request.cc
index 0d98929d..1eb7c4e7 100644
--- a/src/Request.cc
+++ b/src/Request.cc
@@ -64,7 +64,8 @@ Request::Request():
method_(METHOD_GET),
hasPassword_(false),
ipv6LiteralAddress_(false),
- removalRequested_(false)
+ removalRequested_(false),
+ connectedPort_(0)
{}
static std::string removeFragment(const std::string& uri)
@@ -116,6 +117,7 @@ bool Request::setUri(const std::string& uri) {
bool Request::resetUri() {
previousUri_ = referer_;
supportsPersistentConnection_ = true;
+ setConnectedAddrInfo(A2STR::NIL, A2STR::NIL, 0);
return parseUri(uri_);
}