--------------------- PatchSet 11920 Date: 2008/01/23 10:26:00 Author: hno Branch: SQUID_2_7 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.5->1.5.2.1 Index: squid/src/peer_monitor.c =================================================================== RCS file: /cvsroot/squid/squid/src/peer_monitor.c,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -u -r1.5 -r1.5.2.1 --- squid/src/peer_monitor.c 5 Sep 2007 19:59:32 -0000 1.5 +++ squid/src/peer_monitor.c 23 Jan 2008 10:26:00 -0000 1.5.2.1 @@ -1,6 +1,6 @@ /* - * $Id: peer_monitor.c,v 1.5 2007/09/05 19:59:32 hno Exp $ + * $Id: peer_monitor.c,v 1.5.2.1 2008/01/23 10:26:00 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;