]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Fix more client_side races with store client callbacks.
authorrobertc <>
Sun, 22 Jun 2003 15:30:00 +0000 (15:30 +0000)
committerrobertc <>
Sun, 22 Jun 2003 15:30:00 +0000 (15:30 +0000)
Keywords:

Fix more client_side races with store client callbacks.

src/client_side_reply.cc

index 2b56168bf214d3da9d72a1f3324c40f5830a1adc..43065c49cd754ecd89e592bb30ca8fd865b39924 100644 (file)
@@ -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) {