Re: Updated: pipelined/halfclosed connections

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 26 Feb 2004 20:46:57 +0100 (CET)

On Thu, 26 Feb 2004, Adrian Chadd wrote:

> Or, even a single request. If it gets an EOF on the read side it
> should just have a comm_read() return 0, right?

If you only send a single request Squid will continue trying to read
requests and will encounter the EOF.

Yes, comm_read should return EOF when EOF is encountered. But it is
perfectly fine to assert in the comm code that once EOF has been returned
comm_read must not be called again other than maybe for checking if the
half-closed connection is still around (but another operation is more
suitable for this).

Regards
Henrik
Received on Thu Feb 26 2004 - 13:52:20 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:04 MST