summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-04-14 19:51:40 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-04-14 19:51:40 +0200
commitdf3226c1b19b521e1945fb537379a26976552b62 (patch)
tree2bdb956ff9066f7c00eecb42af2179b30179a8ce /methods
parentb1fd12d41f9be5d5f33e4768761ed28f87953082 (diff)
parent785b920b8c5b4e4a299c6bbfc919360529e0e6fc (diff)
merged from lp:~mvo/apt/mvo
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 ea3794e16..a5af1f1a6 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -115,6 +115,9 @@ static bool DoConnect(struct addrinfo *Addr,string Host,
errno = Err;
if(errno == ECONNREFUSED)
Owner->SetFailReason("ConnectionRefused");
+ else if (errno == ETIMEDOUT)
+ Owner->SetFailReason("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);
}