diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-22 22:27:56 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-22 22:27:56 +0000 |
commit | 25182152bc7812fdd56fd40f8b9a04a140079585 (patch) | |
tree | 36569ecd85f651b667dd17546d4a404d0e2194d2 /methods | |
parent | 2ac470e19e33c8f326f98c58a4d3974989d6d1a0 (diff) | |
download | apt-25182152bc7812fdd56fd40f8b9a04a140079585.tar.gz |
* improve the timeout handling (again)
Diffstat (limited to 'methods')
-rw-r--r-- | methods/connect.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc index b85df6887..4e48927ed 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -166,8 +166,11 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd, } if (Res == EAI_AGAIN) + { + Owner->SetFailExtraMsg("\nFailReason: TmpResolveFailure"); return _error->Error(_("Temporary failure resolving '%s'"), Host.c_str()); + } return _error->Error(_("Something wicked happened resolving '%s:%s' (%i)"), Host.c_str(),ServStr,Res); } |