/*
- * $Id: client_side.cc,v 1.130 1997/10/21 15:58:43 wessels Exp $
+ * $Id: client_side.cc,v 1.131 1997/10/24 03:14:35 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
strcat(msg, "\r\n");
comm_write(fd, xstrdup(msg), strlen(msg), clientWriteComplete, http, xfree);
}
+
+int
+checkNegativeHit(StoreEntry *e)
+{
+ if (!BIT_TEST(e->flag, ENTRY_NEGCACHED))
+ return 0;
+ if (e->expires <= squid_curtime)
+ return 0;
+ if (e->store_status != STORE_OK)
+ return 0;
+ return 1;
+}
/*
- * $Id: ftp.cc,v 1.147 1997/10/23 20:41:35 wessels Exp $
+ * $Id: ftp.cc,v 1.148 1997/10/24 03:14:37 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
int code = ftpState->ctrl.replycode;
debug(9, 3) ("This is ftpReadTransferDone\n");
if (code != 226) {
- debug(9, 1) ("Got code %d after reading data, releasing entry\n");
+ debug(9, 1) ("ftpReadTransferDone: Got code %d after reading data\n");
+ debug(9, 1) ("--> releasing '%s'\n", ftpState->entry->url);
storeReleaseRequest(ftpState->entry);
}
ftpDataTransferDone(ftpState);
extern int modifiedSince _PARAMS((StoreEntry *, request_t *));
extern char *clientConstructTraceEcho _PARAMS((clientHttpRequest *));
extern void clientPurgeRequest _PARAMS((clientHttpRequest *));
+extern int checkNegativeHit(StoreEntry *);
#if USE_PROXY_AUTH
extern const char *proxyAuthenticate(const char *headers);