--------------------- PatchSet 5140 Date: 2002/09/26 13:33:04 Author: adri Branch: commloops Tag: (none) Log: Oops. be sure to clear the fdc_table[] entry when we close a fd. :) Members: src/comm.c:1.21.4.7->1.21.4.8 Index: squid/src/comm.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/comm.c,v retrieving revision 1.21.4.7 retrieving revision 1.21.4.8 diff -u -r1.21.4.7 -r1.21.4.8 --- squid/src/comm.c 26 Sep 2002 07:08:17 -0000 1.21.4.7 +++ squid/src/comm.c 26 Sep 2002 13:33:04 -0000 1.21.4.8 @@ -1,6 +1,6 @@ /* - * $Id: comm.c,v 1.21.4.7 2002/09/26 07:08:17 adri Exp $ + * $Id: comm.c,v 1.21.4.8 2002/09/26 13:33:04 adri Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -889,6 +889,7 @@ fd_close(fd); /* update fdstat */ close(fd); fdc_table[fd].active = 0; + bzero(&fdc_table[fd], sizeof(fdc_t)); statCounter.syscalls.sock.closes++; }