/*
- * $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
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. */