summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:53 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:53 +0000
commit4fe6e0c27fd1ec5b4217012616efad6db3fe8b36 (patch)
tree458a6779ba55693d3b7a28eb6e76224abdf00c72
parentf034a64a341b844e520473530f92eaedc7696b77 (diff)
EAI_AGAIN is common..
Author: jgg Date: 2002-02-28 03:51:55 GMT EAI_AGAIN is common..
-rw-r--r--methods/connect.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index f3470af46..e9109423b 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: connect.cc,v 1.7 2001/02/20 07:03:18 jgg Exp $
+// $Id: connect.cc,v 1.8 2002/02/28 03:51:55 jgg Exp $
/* ######################################################################
Connect - Replacement connect call
@@ -159,6 +159,9 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
return _error->Error("Could not resolve '%s'",Host.c_str());
}
+ if (Res == EAI_AGAIN)
+ 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);
}