]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From: "Michael O'Reilly" <michael@metal.iinet.net.au>
authorwessels <>
Wed, 18 Feb 1998 02:05:27 +0000 (02:05 +0000)
committerwessels <>
Wed, 18 Feb 1998 02:05:27 +0000 (02:05 +0000)
require p->tcp_up before switching from PEER_DEAD to PEER_ALIVE.

src/neighbors.cc

index e5850340779b19aadd5a5a879d711dfc217a6d2d..fbe537186670ab781c4ea0867034b6b8ffab7797 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.173 1998/02/06 23:57:30 wessels Exp $
+ * $Id: neighbors.cc,v 1.174 1998/02/17 19:05:27 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -520,7 +520,7 @@ neighborAlive(peer * p, const MemObject * mem, const icp_common_t * header)
 {
     int rtt;
     int n;
-    if (p->stats.logged_state == PEER_DEAD) {
+    if (p->stats.logged_state == PEER_DEAD && p->tcp_up) {
        debug(15, 0) ("Detected REVIVED %s: %s/%d/%d\n",
            neighborTypeStr(p),
            p->host, p->http_port, p->icp_port);