--------------------- PatchSet 11921 Date: 2008/01/23 10:26:18 Author: hno Branch: SQUID_2_6 Tag: (none) Log: Bug #2198: assertion failed sc != NULL when using peer monitor function The peer monitor function aborts Squid with assertion failed sc != NULL if the peer responds but is very slow to complete the response, causing the monitor probe to timeout while waiting for the response body after receiving the response headers. Members: src/peer_monitor.c:1.3.2.1->1.3.2.2 Index: squid/src/peer_monitor.c =================================================================== RCS file: /cvsroot/squid/squid/src/peer_monitor.c,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -u -r1.3.2.1 -r1.3.2.2 --- squid/src/peer_monitor.c 5 Sep 2007 21:27:59 -0000 1.3.2.1 +++ squid/src/peer_monitor.c 23 Jan 2008 10:26:18 -0000 1.3.2.2 @@ -1,6 +1,6 @@ /* - * $Id: peer_monitor.c,v 1.3.2.1 2007/09/05 21:27:59 hno Exp $ + * $Id: peer_monitor.c,v 1.3.2.2 2008/01/23 10:26:18 hno Exp $ * * DEBUG: section ?? Peer monitoring * AUTHOR: Henrik Nordstrom @@ -74,7 +74,7 @@ { PeerMonitor *pm = data; - if (size == 0 || !cbdataValid(pm->peer)) { + if (size <= 0 || !cbdataValid(pm->peer)) { peerMonitorCompleted(pm); } else { pm->running.size += size;