From 20b7c8cd0e058ba74bc311c855db6111726276ef Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 30 Jul 2010 14:38:31 +0000 Subject: 2010-07-30 Tatsuhiro Tsujikawa 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 --- src/AbstractCommand.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/AbstractCommand.cc') 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& 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); -- cgit