]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
clientCacheHit(): break out of a loop when store_status == STORE_COMPLETE
authorwessels <>
Thu, 30 Jul 1998 12:11:53 +0000 (12:11 +0000)
committerwessels <>
Thu, 30 Jul 1998 12:11:53 +0000 (12:11 +0000)
and we don't have full reply headers.

src/client_side.cc

index a008438fa5242ee5f5ce6830b59e930fbfaa8416..0ecdaa8dd6d2b5c67f7421e3006fedf32a1bd89a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.366 1998/07/24 17:02:56 wessels Exp $
+ * $Id: client_side.cc,v 1.367 1998/07/30 06:11:53 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1086,7 +1086,7 @@ clientCacheHit(void *data, char *buf, ssize_t size)
         * we don't have full reply headers yet; either wait for more or
         * punt to clientProcessMiss.
         */
-       if (e->mem_status == IN_MEMORY) {
+       if (e->mem_status == IN_MEMORY || e->store_status == STORE_COMPLETE) {
            memFree(MEM_4K_BUF, buf);
            clientProcessMiss(http);
        } else if (size == SM_PAGE_SIZE && http->out.offset == 0) {