--------------------- PatchSet 5865 Date: 2003/08/11 19:32:07 Author: serassio Branch: nt-2_5 Tag: (none) Log: Added more debug info to pinger Members: src/pinger.c:1.4.74.7->1.4.74.8 Index: squid/src/pinger.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/pinger.c,v retrieving revision 1.4.74.7 retrieving revision 1.4.74.8 diff -u -r1.4.74.7 -r1.4.74.8 --- squid/src/pinger.c 9 Aug 2003 17:44:47 -0000 1.4.74.7 +++ squid/src/pinger.c 11 Aug 2003 19:32:07 -0000 1.4.74.8 @@ -1,6 +1,6 @@ /* - * $Id: pinger.c,v 1.4.74.7 2003/08/09 17:44:47 serassio Exp $ + * $Id: pinger.c,v 1.4.74.8 2003/08/11 19:32:07 serassio Exp $ * * DEBUG: section 42 ICMP Pinger program * AUTHOR: Duane Wessels @@ -542,10 +542,14 @@ if (FD_ISSET(icmp_sock, &R)) pingerRecv(); if (PINGER_TIMEOUT + last_check_time < squid_curtime) { + debug(42,5) ("pinger: timeout occured\n"); if (send(socket_to_squid, (char *) &tv, 0, 0) < 0) { + debug(42,5) ("Pinger: send socket_to_squid failed\n"); pingerClose(); exit(1); - } + } else { + debug(42,5) ("Pinger: send socket_to_squid OK\n"); + } last_check_time = squid_curtime; } }