From: wessels <> Date: Sat, 16 May 1998 01:15:03 +0000 (+0000) Subject: Henrik: X-Git-Tag: SQUID_3_0_PRE1~3314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d6629c6bcf7da27c6b5acacd86129dada22346b;p=thirdparty%2Fsquid.git Henrik: be verbose when refusing new HTTP connections --- diff --git a/src/client_side.cc b/src/client_side.cc index b7bd80af9d..e254c06367 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.306 1998/05/14 16:33:48 wessels Exp $ + * $Id: client_side.cc,v 1.307 1998/05/15 19:15:03 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2100,7 +2100,14 @@ requestTimeout(int fd, void *data) int httpAcceptDefer(int fdnotused, void *notused) { - return fdNFree() < RESERVED_FD; + static time_t last_warn = 0; + if (fdNFree() >= RESERVED_FD) + return 0; + if (last_warn + 15 < squid_curtime) { + debug(33, 0) ("WARNING! Your cache is running out of filedescriptors\n"); + last_warn = squid_curtime; + } + return 1; } /* Handle a new connection on HTTP socket. */