/*
- * $Id: client_side.cc,v 1.183 1998/01/01 00:05:52 wessels Exp $
+ * $Id: client_side.cc,v 1.184 1998/01/01 05:48:38 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
clientSendMoreData,
http);
} else {
- debug(12, 5) ("clientWriteComplete: FD %d Setting read handler for next request\n", fd);
+ debug(12, 5) ("clientWriteComplete: FD %d reading next request\n", fd);
fd_note(fd, "Reading next request");
- clientReadRequest(fd, conn); /* Read next request */
+ /*
+ * Set the timeout BEFORE calling clientReadRequest().
+ */
commSetTimeout(fd, 15, requestTimeout, conn);
+ clientReadRequest(fd, conn); /* Read next request */
+ /*
+ * Note, the FD may be closed at this point.
+ */
}
} else {
comm_close(fd);
/*
- * $Id: comm.cc,v 1.216 1997/12/31 22:13:20 wessels Exp $
+ * $Id: comm.cc,v 1.217 1998/01/01 05:48:39 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
assert(fd >= 0);
assert(fd < Squid_MaxFD);
F = &fd_table[fd];
+ assert(F->open);
if (timeout < 0) {
F->timeout_handler = NULL;
F->timeout_data = NULL;