From: robertc <> Date: Sun, 22 Jun 2003 15:30:00 +0000 (+0000) Subject: Summary: Fix more client_side races with store client callbacks. X-Git-Tag: SQUID_3_0_PRE1~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=045a76abcf3b03a72cdddd655189fc9d2f5d3fa9;p=thirdparty%2Fsquid.git Summary: Fix more client_side races with store client callbacks. Keywords: Fix more client_side races with store client callbacks. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index 2b56168bf2..43065c49cd 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.54 2003/06/20 01:01:00 robertc Exp $ + * $Id: client_side_reply.cc,v 1.55 2003/06/22 09:30:00 robertc Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -514,6 +514,9 @@ clientReplyContext::handleIMSGiveClientNewEntry() void clientReplyContext::handleIMSReply(StoreIOBuffer result) { + if (deleting) + return; + debug(88, 3) ("clientHandleIMSReply: %s, %lu bytes\n", storeUrl(http->storeEntry()), (long unsigned) result.length); @@ -559,8 +562,13 @@ clientReplyContext::CacheHit(void *data, StoreIOBuffer result) void clientReplyContext::cacheHit(StoreIOBuffer result) { + if (deleting) + return; + StoreEntry *e = http->storeEntry(); + request_t *r = http->request; + debug(88, 3) ("clientCacheHit: %s, %ud bytes\n", http->uri, (unsigned int)result.length); if (http->storeEntry() == NULL) {