From: wessels <> Date: Wed, 14 Oct 1998 02:37:19 +0000 (+0000) Subject: replaced errorCon() with call to fwdFail() for httpTimeout. X-Git-Tag: SQUID_3_0_PRE1~2587 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5631871bd95518c0a066815587ec2b85f5660c6a;p=thirdparty%2Fsquid.git replaced errorCon() with call to fwdFail() for httpTimeout. --- diff --git a/src/http.cc b/src/http.cc index 458f051468..12d6018569 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.326 1998/10/09 17:52:58 wessels Exp $ + * $Id: http.cc,v 1.327 1998/10/13 20:37:19 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -89,13 +89,10 @@ httpTimeout(int fd, void *data) { HttpStateData *httpState = data; StoreEntry *entry = httpState->entry; - ErrorState *err; debug(11, 4) ("httpTimeout: FD %d: '%s'\n", fd, storeUrl(entry)); assert(entry->store_status == STORE_PENDING); if (entry->mem_obj->inmem_hi == 0) { - err = errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT); - err->request = requestLink(httpState->orig_request); - errorAppendEntry(entry, err); + fwdFail(httpState->fwdState, ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT, 0); } else { storeAbort(entry, 0); }