summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-05-04 13:26:49 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-05-04 13:26:49 +0200
commit6ee2b0f83ea3c41b52c8076eac63f921c51b9887 (patch)
tree545614a9d8074a34ec7daf2491c8a037055e62be /methods
parent173ae2a460b905b18911f42964fd38dbac2959d6 (diff)
parent52d9d000a74ea71edff93f00ae38aceb9ada53d4 (diff)
merge from the debian-sid branch
Diffstat (limited to 'methods')
-rw-r--r--methods/connect.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index adb16a199..2f6b4833e 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -116,6 +116,9 @@ static bool DoConnect(struct addrinfo *Addr,string Host,
errno = Err;
if(errno == ECONNREFUSED)
Owner->SetFailExtraMsg("\nFailReason: ConnectionRefused");
+ else if (errno == ETIMEDOUT)
+ Owner->SetFailExtraMsg("\nFailReason: ConnectionTimedOut");
+ bad_addr.insert(bad_addr.begin(), string(Name));
return _error->Errno("connect",_("Could not connect to %s:%s (%s)."),Host.c_str(),
Service,Name);
}