--------------------- PatchSet 5343 Date: 2002/10/12 00:12:43 Author: adri Branch: commloops Tag: (none) Log: call the flush routine _before_ we zero the fd_table entry in fd_close(). Members: src/comm.c:1.21.4.24->1.21.4.25 Index: squid/src/comm.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/comm.c,v retrieving revision 1.21.4.24 retrieving revision 1.21.4.25 diff -u -r1.21.4.24 -r1.21.4.25 --- squid/src/comm.c 9 Oct 2002 09:55:38 -0000 1.21.4.24 +++ squid/src/comm.c 12 Oct 2002 00:12:43 -0000 1.21.4.25 @@ -1,6 +1,6 @@ /* - * $Id: comm.c,v 1.21.4.24 2002/10/09 09:55:38 adri Exp $ + * $Id: comm.c,v 1.21.4.25 2002/10/12 00:12:43 adri Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1160,8 +1160,8 @@ F->ssl = NULL; } #endif - fd_close(fd); /* update fdstat */ comm_empty_os_read_buffers(fd); + fd_close(fd); /* update fdstat */ close(fd); fdc_table[fd].active = 0; bzero(&fdc_table[fd], sizeof(fdc_t));