From: wessels <> Date: Sat, 6 May 2006 03:52:20 +0000 (+0000) Subject: minor bugfix: immediately shutdown interprocess socket to 'pinger' X-Git-Tag: SQUID_3_0_PRE4~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7882be46d26c201d7bec1f95ce5c2f45ae28bc7;p=thirdparty%2Fsquid.git minor bugfix: immediately shutdown interprocess socket to 'pinger' if send() returns ECONNRESET. --- diff --git a/src/icmp.cc b/src/icmp.cc index abae766c41..35fddac112 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -1,6 +1,6 @@ /* - * $Id: icmp.cc,v 1.85 2005/04/18 21:52:42 hno Exp $ + * $Id: icmp.cc,v 1.86 2006/05/05 21:52:20 wessels Exp $ * * DEBUG: section 37 ICMP Routines * AUTHOR: Duane Wessels @@ -92,7 +92,13 @@ icmpRecv(int unused1, void *unused2) if (n < 0 && EAGAIN != errno) { debug(37, 1) ("icmpRecv: recv: %s\n", xstrerror()); - if (++fail_count == 10 || errno == ECONNREFUSED) + if (errno == ECONNREFUSED) + icmpClose(); + + if (errno == ECONNRESET) + icmpClose(); + + if (++fail_count == 10) icmpClose(); return;