From f81b2bec69bdbd6305976eccabedbc47973a38e4 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 3 Dec 1997 11:39:07 +0000 Subject: [PATCH] make EALREADY a hard error for HP-UX --- src/comm.cc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/comm.cc b/src/comm.cc index 41264a55cd..59af5ac62e 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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 -- 2.47.3