From: wessels <> Date: Sat, 25 Jul 1998 04:48:15 +0000 (+0000) Subject: don't push idle connections during shutdown X-Git-Tag: SQUID_3_0_PRE1~2983 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6b0579c3e76d968891a56d0ed8d0dc68cb26efb;p=thirdparty%2Fsquid.git don't push idle connections during shutdown --- diff --git a/src/pconn.cc b/src/pconn.cc index 7f61d923ac..8e90ffd8d8 100644 --- a/src/pconn.cc +++ b/src/pconn.cc @@ -1,6 +1,6 @@ /* - * $Id: pconn.cc,v 1.19 1998/07/22 20:37:39 wessels Exp $ + * $Id: pconn.cc,v 1.20 1998/07/24 22:48:15 wessels Exp $ * * DEBUG: section 48 Persistent Connections * AUTHOR: Duane Wessels @@ -181,6 +181,9 @@ pconnPush(int fd, const char *host, u_short port) debug(48, 3) ("pconnPush: Not many unused FDs\n"); comm_close(fd); return; + } else if (shutting_down) { + comm_close(fd); + return } assert(table != NULL); strcpy(key, pconnKey(host, port));