/*
- * $Id: client_side_reply.cc,v 1.18 2002/10/14 10:53:15 adrian Exp $
+ * $Id: client_side_reply.cc,v 1.19 2002/10/15 13:12:00 robertc Exp $
*
* DEBUG: section 88 Client-side Reply Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
ipcacheInvalidate(r->host);
#endif
#if USE_CACHE_DIGESTS
- lookup_type = e ? "HIT" : "MISS";
+ lookup_type = http->entry ? "HIT" : "MISS";
#endif
- if (NULL == e) {
+ if (NULL == http->entry) {
/* this object isn't in the cache */
debug(85, 3) ("clientProcessRequest2: storeGet() MISS\n");
http->logType = LOG_TCP_MISS;
}
if (Config.onoff.offline) {
debug(85, 3) ("clientProcessRequest2: offline HIT\n");
- http->entry = e;
http->logType = LOG_TCP_HIT;
doGetMoreData();
return;
if (EBIT_TEST(e->flags, ENTRY_SPECIAL)) {
/* Special entries are always hits, no matter what the client says */
debug(85, 3) ("clientProcessRequest2: ENTRY_SPECIAL HIT\n");
- http->entry = e;
http->logType = LOG_TCP_HIT;
doGetMoreData();
return;
}
#if HTTP_VIOLATIONS
- if (e->store_status == STORE_PENDING) {
+ if (http->entry->store_status == STORE_PENDING) {
if (r->flags.nocache || r->flags.nocache_hack) {
debug(85, 3) ("Clearing no-cache for STORE_PENDING request\n\t%s\n",
- storeUrl(e));
+ storeUrl(http->entry));
r->flags.nocache = 0;
r->flags.nocache_hack = 0;
}
return;
}
debug(85, 3) ("clientProcessRequest2: default HIT\n");
- http->entry = e;
http->logType = LOG_TCP_HIT;
doGetMoreData();
}