From: hno <> Date: Sat, 25 Sep 2004 21:54:12 +0000 (+0000) Subject: Bug #1001: Partial hit results in TCP_HIT, not TCP_MISS X-Git-Tag: SQUID_3_0_PRE4~1046 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffdf45f2063374ed2ceeb3726f489afa899b1fa4;p=thirdparty%2Fsquid.git Bug #1001: Partial hit results in TCP_HIT, not TCP_MISS Set log type to TCP_MISS on partial hits (object currently being retreived) --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index f325584baa..0dfedd3bb9 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.70 2004/08/30 03:28:58 robertc Exp $ + * $Id: client_side_reply.cc,v 1.71 2004/09/25 15:54:12 hno Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -749,7 +749,9 @@ clientReplyContext::cacheHit(StoreIOBuffer result) * plain ol' cache hit */ - if (e->mem_status == IN_MEMORY) + if (e->store_status != STORE_OK) + http->log_type = LOG_TCP_MISS; + else if (e->mem_status == IN_MEMORY) http->logType = LOG_TCP_MEM_HIT; else if (Config.onoff.offline) http->logType = LOG_TCP_OFFLINE_HIT;