]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
debugging to track ack_deficit
authorwessels <>
Thu, 29 Aug 1996 22:55:00 +0000 (22:55 +0000)
committerwessels <>
Thu, 29 Aug 1996 22:55:00 +0000 (22:55 +0000)
remove stupid ack_deficit wrap around check

src/neighbors.cc

index 79a08dcce25716312695824930090661dc300242..e45d91712d9b3cf1dea0fcf516197cd4bb5db3f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.44 1996/08/26 19:57:08 wessels Exp $
+ * $Id: neighbors.cc,v 1.45 1996/08/29 16:55:00 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -480,6 +480,9 @@ int neighborsUdpPing(proto)
        e->stats.ack_deficit++;
        e->stats.pings_sent++;
 
+       debug(15,3,"neighborsUdpPing: %s: ack_deficit = %d\n",
+               e->host, e->stats.ack_deficit);
+
        if (e->stats.ack_deficit < HIER_MAX_DEFICIT) {
            /* its alive, expect a reply from it */
            e->neighbor_up = 1;
@@ -487,10 +490,6 @@ int neighborsUdpPing(proto)
        } else {
            /* Neighbor is dead; ping it anyway, but don't expect a reply */
            e->neighbor_up = 0;
-           if (e->stats.ack_deficit > (HIER_MAX_DEFICIT << 1))
-               /* do this to prevent wrap around but we still want it
-                * to move a bit so we can debug it easier. */
-               e->stats.ack_deficit = HIER_MAX_DEFICIT + 1;
            /* log it once at the threshold */
            if ((e->stats.ack_deficit == HIER_MAX_DEFICIT)) {
                debug(15, 0, "neighborsUdpPing: Detected DEAD %s: %s\n",