]> git.saurik.com Git - apt.git/blobdiff - methods/connect.cc
Fix lame sort errors in priocmp found by Gustavo
[apt.git] / methods / connect.cc
index f3470af46642804e50ea1a0d6b086313d964935d..e58991b553a6bcde5d3a0bf93b5bdbe6cea3f978 100644 (file)
@@ -1,10 +1,13 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: connect.cc,v 1.7 2001/02/20 07:03:18 jgg Exp $
+// $Id: connect.cc,v 1.9 2002/09/14 05:28:38 jgg Exp $
 /* ######################################################################
 
    Connect - Replacement connect call
-   
+
+   This was originally authored by Jason Gunthorpe <jgg@debian.org>
+   and is placed in the Public Domain, do with it what you will.
+      
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
@@ -159,6 +162,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);
         }