/*
- * $Id: ftp.cc,v 1.270 1999/01/20 03:02:48 wessels Exp $
+ * $Id: ftp.cc,v 1.271 1999/01/20 19:27:08 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
{
FtpStateData *ftpState = data;
StoreEntry *entry = ftpState->entry;
- ErrorState *err;
debug(9, 4) ("ftpTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
- if (entry->store_status == STORE_PENDING) {
- if (entry->mem_obj->inmem_hi == 0) {
- err = errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT);
- err->request = requestLink(ftpState->request);
- errorAppendEntry(entry, err);
- }
- }
+ if (entry->store_status == STORE_PENDING) {
+ if (entry->mem_obj->inmem_hi == 0) {
+ fwdFail(ftpState->fwd,
+ errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+ }
+ }
if (ftpState->data.fd > -1) {
comm_close(ftpState->data.fd);
ftpState->data.fd = -1;
/*
- * $Id: gopher.cc,v 1.147 1999/01/19 02:24:26 wessels Exp $
+ * $Id: gopher.cc,v 1.148 1999/01/20 19:27:11 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
{
GopherStateData *gopherState = data;
StoreEntry *entry = gopherState->entry;
- ErrorState *err;
debug(10, 4) ("gopherTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
- if (entry->mem_obj->inmem_hi == 0) {
- err = errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT);
- err->url = xstrdup(gopherState->request);
- errorAppendEntry(entry, err);
- }
+ if (entry->store_status == STORE_PENDING) {
+ if (entry->mem_obj->inmem_hi == 0) {
+ fwdFail(gopherState->fwdState,
+ errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+ }
+ }
comm_close(fd);
}
/*
- * $Id: http.cc,v 1.343 1999/01/19 23:17:58 wessels Exp $
+ * $Id: http.cc,v 1.344 1999/01/20 19:27:10 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
HttpStateData *httpState = data;
StoreEntry *entry = httpState->entry;
debug(11, 4) ("httpTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
- assert(entry->store_status == STORE_PENDING);
- if (entry->mem_obj->inmem_hi == 0) {
- fwdFail(httpState->fwd,
- errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+ if (entry->store_status == STORE_PENDING) {
+ if (entry->mem_obj->inmem_hi == 0) {
+ fwdFail(httpState->fwd,
+ errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+ }
}
comm_close(fd);
}
/*
- * $Id: wais.cc,v 1.129 1999/01/19 02:24:36 wessels Exp $
+ * $Id: wais.cc,v 1.130 1999/01/20 19:27:12 wessels Exp $
*
* DEBUG: section 24 WAIS Relay
* AUTHOR: Harvest Derived
waisTimeout(int fd, void *data)
{
WaisStateData *waisState = data;
- ErrorState *err;
StoreEntry *entry = waisState->entry;
debug(24, 4) ("waisTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
- err = errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT);
- err->request = requestLink(waisState->request);
- errorAppendEntry(entry, err);
+ if (entry->store_status == STORE_PENDING) {
+ if (entry->mem_obj->inmem_hi == 0) {
+ fwdFail(waisState->fwd,
+ errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+ }
+ }
comm_close(fd);
}