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

Reply via email to