]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
change error message for fwdConnectTimeout to ERR_CONNECT_FAIL/ETIMEDOUT
authorwessels <>
Thu, 14 Jan 1999 04:59:52 +0000 (04:59 +0000)
committerwessels <>
Thu, 14 Jan 1999 04:59:52 +0000 (04:59 +0000)
src/forward.cc

index 276db3aab3f24d25f2c1aebf8d58524959bb3fed..a59a033b57d475cc2351fdf9a0399a530d951c92 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.44 1999/01/12 23:37:42 wessels Exp $
+ * $Id: forward.cc,v 1.45 1999/01/13 21:59:52 wessels Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -189,8 +189,9 @@ fwdConnectTimeout(int fd, void *data)
     debug(17, 3) ("fwdConnectTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
     assert(fd == fwdState->server_fd);
     if (entry->mem_obj->inmem_hi == 0) {
-       err = errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT);
+       err = errorCon(ERR_CONNECT_FAIL, HTTP_GATEWAY_TIMEOUT);
        err->request = requestLink(fwdState->request);
+       err->xerrno = ETIMEDOUT;        /* cheat */
        errorAppendEntry(entry, err);
     }
     comm_close(fd);