/*
- * $Id: enums.h,v 1.141 1999/01/11 16:50:30 wessels Exp $
+ * $Id: enums.h,v 1.142 1999/01/11 23:29:41 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
ERR_LIFETIME_EXP,
ERR_READ_ERROR,
ERR_WRITE_ERROR,
- ERR_CLIENT_ABORT,
+ ERR_SHUTTING_DOWN,
ERR_CONNECT_FAIL,
ERR_INVALID_REQ,
ERR_UNSUP_REQ,
/*
- * $Id: forward.cc,v 1.42 1999/01/11 16:50:31 wessels Exp $
+ * $Id: forward.cc,v 1.43 1999/01/11 23:29:42 wessels Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
return;
}
}
+ if (shutting_down) {
+ /* more yuck */
+ err = errorCon(ERR_SHUTTING_DOWN, HTTP_SERVICE_UNAVAILABLE);
+ err->request = requestLink(r);
+ errorAppendEntry(e, err);
+ return;
+ }
debug(17, 3) ("fwdStart: '%s'\n", storeUrl(e));
e->mem_obj->request = requestLink(r);
e->mem_obj->fd = fd;
/*
- * $Id: icp_v2.cc,v 1.56 1998/12/05 00:54:29 wessels Exp $
+ * $Id: icp_v2.cc,v 1.57 1999/01/11 23:29:42 wessels Exp $
*
* DEBUG: section 12 Internet Cache Protocol
* AUTHOR: Duane Wessels
if (theOutIcpConnection > -1) {
debug(12, 1) ("FD %d Closing ICP connection\n", theOutIcpConnection);
comm_close(theOutIcpConnection);
+ theOutIcpConnection = -1;
}
}