]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
log IMS+EXPIRED 304 replies as EXP_HIT
authorwessels <>
Tue, 22 Oct 1996 10:27:58 +0000 (10:27 +0000)
committerwessels <>
Tue, 22 Oct 1996 10:27:58 +0000 (10:27 +0000)
src/client_side.cc

index ef2c5e8952e6cd568160da28b984f54551539e7b..fc48bf23e58ca2afa340aa1da7658399bda260de 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.47 1996/10/17 11:17:42 wessels Exp $
+ * $Id: client_side.cc,v 1.48 1996/10/22 04:27:58 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -460,11 +460,12 @@ icpHandleIMSReply(int fd, StoreEntry * entry, void *data)
        }
     } else {
        /* the client can handle this reply, whatever it is */
+       icpState->log_type = LOG_TCP_EXPIRED_MISS;
        if (mem->reply->code == 304) {
            icpState->old_entry->timestamp = squid_curtime;
            icpState->old_entry->refcount++;
+           icpState->log_type = LOG_TCP_EXPIRED_HIT;
        }
-       icpState->log_type = LOG_TCP_EXPIRED_MISS;
        storeUnlockObject(icpState->old_entry);
     }
     icpState->old_entry = NULL;        /* done with old_entry */