]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add REQ_REFRESH bit and DONT check siblings for REFRESH requests.
authorwessels <>
Thu, 28 Nov 1996 05:19:18 +0000 (05:19 +0000)
committerwessels <>
Thu, 28 Nov 1996 05:19:18 +0000 (05:19 +0000)
src/client_side.cc
src/neighbors.cc

index 57c465f66abc5b26589cea090262213450cbe522..f49f839d77d9443c69953074a492c532533c3f5d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.68 1996/11/24 02:37:34 wessels Exp $
+ * $Id: client_side.cc,v 1.69 1996/11/27 22:19:18 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -382,6 +382,7 @@ icpProcessExpired(int fd, void *data)
 
     debug(33, 3, "icpProcessExpired: FD %d '%s'\n", fd, icpState->url);
 
+    BIT_SET(icpState->request->flags, REQ_REFRESH);
     icpState->old_entry = icpState->entry;
     entry = storeCreateEntry(url,
        request_hdr,
index cc59ff8ac43bd142cded1419767aeef27a4d3468..e257b22956633825c6b82ddbe8c35259d5f36320 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.91 1996/11/26 23:21:52 wessels Exp $
+ * $Id: neighbors.cc,v 1.92 1996/11/27 22:19:20 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -198,6 +198,9 @@ edgeWouldBePinged(const edge * e, request_t * request)
     if (BIT_TEST(request->flags, REQ_NOCACHE))
        if (neighborType(e, request) == EDGE_SIBLING)
            return 0;
+    if (BIT_TEST(request->flags, REQ_REFRESH))
+       if (neighborType(e, request) == EDGE_SIBLING)
+           return 0;
     if (e->pinglist == NULL && e->acls == NULL)
        return do_ping;
     do_ping = 0;