mirror of https://github.com/aria2/aria2
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.ccpull/1/head
parent
a21e375baa
commit
20b7c8cd0e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue