diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-30 14:38:31 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-30 14:38:31 +0000 |
| commit | 20b7c8cd0e058ba74bc311c855db6111726276ef (patch) | |
| tree | 442d6571850e4fd060f04c41ae557440a541fff2 | |
| parent | a21e375baaf865d23c44540acf4315d40df53f9f (diff) | |
2010-07-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that if hostname is numeric,
AbstractCommand::resolveHostname() does not add its address to
given addrs. This makes pooled socket is not used for that
address.
* src/AbstractCommand.cc
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | src/AbstractCommand.cc | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2010-07-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + + Fixed the bug that if hostname is numeric, + AbstractCommand::resolveHostname() does not add its address to + given addrs. This makes pooled socket is not used for that + address. + * src/AbstractCommand.cc + 2010-07-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> Set milliseconds in DownloadEngine::refreshInterval_. Because diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index 9438d8a9..54765dca 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -701,6 +701,7 @@ std::string AbstractCommand::resolveHostname (std::vector<std::string>& addrs, const std::string& hostname, uint16_t port) { if(util::isNumericHost(hostname)) { + addrs.push_back(hostname); return hostname; } e_->findAllCachedIPAddresses(std::back_inserter(addrs), hostname, port); |
