httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ICS.UCI.EDU>
Subject Re: [PATCH] lingering_close cleanups
Date Fri, 24 Jan 1997 01:45:18 GMT
> It is why the archives say SO_LINGER was tried and lingering_close was
> added (the code was offered by RST in a response to this problem, but most
> likely after discussion of it and why it is needed for other reasons
> privately).  If you just do a close() on the broken systems, the client
> gets truncated responses.  A supposed (as per the sockets FAQ) workaround
> is to do a shutdown() first; the shutdown is supposed to properly flush
> the queue without destroying data.  

Yeah, but that is what the first shutdown(sd, 1) does.  An additional
shutdown(sd, 2) would just close the input end of the socket, which
we don't care about destroying.

......Roy

Mime
View raw message