From: wessels <> Date: Thu, 28 Nov 1996 05:19:18 +0000 (+0000) Subject: Add REQ_REFRESH bit and DONT check siblings for REFRESH requests. X-Git-Tag: SQUID_3_0_PRE1~5383 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d950cec89eb8cb85304cf44a0ef5f203c642db6e;p=thirdparty%2Fsquid.git Add REQ_REFRESH bit and DONT check siblings for REFRESH requests. --- diff --git a/src/client_side.cc b/src/client_side.cc index 57c465f66a..f49f839d77 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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, diff --git a/src/neighbors.cc b/src/neighbors.cc index cc59ff8ac4..e257b22956 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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;