]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make EALREADY a hard error for HP-UX
authorwessels <>
Wed, 3 Dec 1997 11:39:07 +0000 (11:39 +0000)
committerwessels <>
Wed, 3 Dec 1997 11:39:07 +0000 (11:39 +0000)
src/comm.cc

index 41264a55cd7627996aae16c4ffedae0e7a6af74c..59af5ac62e90791cf7743d6e73e161a5ef048abb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.212 1997/12/02 00:15:50 wessels Exp $
+ * $Id: comm.cc,v 1.213 1997/12/03 04:39:07 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -497,6 +497,21 @@ comm_connect_addr(int sock, const struct sockaddr_in *address)
        debug(5, 9) ("connect FD %d: %s\n", sock, xstrerror());
        switch (errno) {
        case EALREADY:
+#ifdef _SQUID_HPUX_
+           /*
+            * On my HP-UX box (HP-UX tirana B.10.10 A 9000/851), 
+            * we get into fast loops on EALREADY.  select(2) continually
+            * says the FD is ready for writing, but connect always
+            * returns EALREADY. I applied a patch (PHNE_12906) but
+            * it didn't help.  -DW Dec 1, 1997
+            */
+           debug(50, 1) ("connect: %s:%d: %s.\n",
+               fqdnFromAddr(address->sin_addr),
+               ntohs(address->sin_port),
+               xstrerror());
+           return COMM_ERROR;
+           /* NOTREACHEd */
+#endif
 #if EAGAIN != EWOULDBLOCK
        case EAGAIN:
 #endif