in squid_error_entry(); remove the debug_trap crap.
/*
- * $Id: errorpage.cc,v 1.51 1996/11/07 21:19:18 wessels Exp $
+ * $Id: errorpage.cc,v 1.52 1996/11/15 17:26:18 wessels Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
{
int error_index;
- if (!entry) {
- debug_trap("squid_error_entry: NULL entry");
+ if (entry == NULL)
return;
- }
- if (entry->store_status != STORE_PENDING) {
- debug_trap("squid_error_entry: store_status != STORE_PENDING");
+ if (entry->store_status != STORE_PENDING)
return;
- }
if (type < ERR_MIN || type > ERR_MAX)
fatal_dump("squid_error_entry: type out of range.");
error_index = (int) (type - ERR_MIN);
/*
- * $Id: ftp.cc,v 1.83 1996/11/15 07:51:08 wessels Exp $
+ * $Id: ftp.cc,v 1.84 1996/11/15 17:26:19 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
StoreEntry *entry = NULL;
entry = data->entry;
debug(9, 4, "ftpLifeTimeExpire: FD %d: '%s'\n", fd, entry->url);
- if (entry->store_status == STORE_PENDING)
- squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
+ squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
comm_close(fd);
}
buf = NULL;
}
if (errflag) {
- if (entry->store_status == STORE_PENDING) {
- squid_error_entry(entry, ERR_CONNECT_FAIL, xstrerror());
- comm_close(fd);
- }
+ squid_error_entry(entry, ERR_CONNECT_FAIL, xstrerror());
+ comm_close(fd);
return;
}
commSetSelect(ftpState->ftp_fd,
/*
- * $Id: gopher.cc,v 1.67 1996/11/15 00:36:18 wessels Exp $
+ * $Id: gopher.cc,v 1.68 1996/11/15 17:26:20 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
StoreEntry *entry = NULL;
entry = data->entry;
debug(10, 4, "gopherLifeTimeExpire: FD %d: '%s'\n", fd, entry->url);
- if (entry->store_status == STORE_PENDING)
- squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
+ squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
commSetSelect(fd,
COMM_SELECT_READ | COMM_SELECT_WRITE,
NULL,
/*
- * $Id: http.cc,v 1.108 1996/11/15 07:51:09 wessels Exp $
+ * $Id: http.cc,v 1.109 1996/11/15 17:26:21 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
HttpStateData *httpState = data;
StoreEntry *entry = httpState->entry;
debug(11, 4, "httpLifeTimeExpire: FD %d: '%s'\n", fd, entry->url);
- if (entry->store_status == STORE_PENDING)
- squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
+ squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
commSetSelect(fd, COMM_SELECT_READ | COMM_SELECT_WRITE, NULL, NULL, 0);
comm_close(fd);
}
/*
- * $Id: store.cc,v 1.166 1996/11/15 00:36:23 wessels Exp $
+ * $Id: store.cc,v 1.167 1996/11/15 17:26:22 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
}
int
-storeFirstClientFD(MemObject *mem)
+storeFirstClientFD(MemObject * mem)
{
int i;
if (mem == NULL)
/*
- * $Id: url.cc,v 1.42 1996/11/15 00:36:24 wessels Exp $
+ * $Id: url.cc,v 1.43 1996/11/15 17:26:23 wessels Exp $
*
* DEBUG: section 23 URL Parsing
* AUTHOR: Duane Wessels
int l;
proto[0] = host[0] = urlpath[0] = login[0] = '\0';
- if ((l = strlen(url)) > (MAX_URL-1)) {
+ if ((l = strlen(url)) > (MAX_URL - 1)) {
/* terminate so it doesn't overflow other buffers */
*(url + (MAX_URL >> 1)) = '\0';
debug(23, 0, "urlParse: URL too large (%d bytes)\n", l);
/*
- * $Id: wais.cc,v 1.57 1996/11/15 00:36:25 wessels Exp $
+ * $Id: wais.cc,v 1.58 1996/11/15 17:26:24 wessels Exp $
*
* DEBUG: section 24 WAIS Relay
* AUTHOR: Harvest Derived
entry = waisState->entry;
debug(24, 4, "waisLifeTimeExpire: FD %d: '%s'\n", fd, entry->url);
- if (entry->store_status == STORE_PENDING)
- squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
+ squid_error_entry(entry, ERR_LIFETIME_EXP, NULL);
commSetSelect(fd, COMM_SELECT_READ | COMM_SELECT_WRITE, NULL, NULL, 0);
comm_close(fd);
}