There was a posting to squid-users with the following log messages in the 
cache log:

2006/08/04 16:01:42| WARNING! Your cache is running out of filedescriptors
2006/08/04 16:01:42| comm_call_handlers(): WARNING defer handler for
fd=12 (desc=HTTP Socket) does not call commDeferFD() - backing off
manually 

This patch should fix the second message.

Steven 
Index: src/client_side.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/client_side.c,v
retrieving revision 1.667
diff -u -r1.667 client_side.c
--- src/client_side.c   2 Aug 2006 21:45:23 -0000       1.667
+++ src/client_side.c   7 Aug 2006 10:17:20 -0000
@@ -4325,7 +4325,7 @@
 }
 
 static int
-httpAcceptDefer(int fdunused, void *dataunused)
+httpAcceptDefer(int fd, void *dataunused)
 {
     static time_t last_warn = 0;
     if (fdNFree() >= RESERVED_FD)
@@ -4334,6 +4334,7 @@
        debug(33, 0) ("WARNING! Your cache is running out of 
filedescriptors\n");
        last_warn = squid_curtime;
     }
+    commDeferFD(fd);
     return 1;
 }
 

Reply via email to