X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fhttp.cc;h=60b1768916d23c88afdcc31f888adb0056707e59;hb=12158bdc66a72b40cb881f57cc7db3aeae27ef12;hp=2156ad6bfd8d65a70ed350ca40201afe46e1c756;hpb=c72d668be325df69d6741bd0eacd840e8eaa6328;p=thirdparty%2Fsquid.git diff --git a/src/http.cc b/src/http.cc index 2156ad6bfd..60b1768916 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $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 @@ -90,10 +90,11 @@ httpTimeout(int fd, void *data) 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); }