/*
- * $Id: forward.cc,v 1.6 1998/06/09 22:43:48 wessels Exp $
+ * $Id: forward.cc,v 1.7 1998/06/09 22:58:01 wessels Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
debug(17,1)("fwdAbort: %s\n", storeUrl(fwdState->entry));
fwdStateFree(fwdState);
}
+
+/*
+ * Frees fwdState without closing FD or generating an abort
+ */
+void
+fwdUnregister(int fd, FwdState *fwdState)
+{
+ assert(fd = fwdState->server_fd);
+ comm_remove_close_handler(fd, fwdServerClosed, fwdState);
+ fwdState->server_fd = -1;
+ fwdStateFree(fwdState);
+}
/*
- * $Id: http.cc,v 1.285 1998/06/09 21:18:50 wessels Exp $
+ * $Id: http.cc,v 1.286 1998/06/09 22:58:02 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
commSetTimeout(fd, -1, NULL, NULL);
commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0);
comm_remove_close_handler(fd, httpStateFree, httpState);
+ fwdUnregister(fd, httpState->fwdState);
storeComplete(entry); /* deallocates mem_obj->request */
pconnPush(fd, request->host, request->port);
httpState->fd = -1;