From: wessels <> Date: Thu, 30 Jul 1998 12:11:53 +0000 (+0000) Subject: clientCacheHit(): break out of a loop when store_status == STORE_COMPLETE X-Git-Tag: SQUID_3_0_PRE1~2961 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77f7985a106d1ab1d5a5d2a584d1b5b3dacbc768;p=thirdparty%2Fsquid.git clientCacheHit(): break out of a loop when store_status == STORE_COMPLETE and we don't have full reply headers. --- diff --git a/src/client_side.cc b/src/client_side.cc index a008438fa5..0ecdaa8dd6 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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) {