httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: roy's l_c perf patch and spareservers
Date Sat, 15 Feb 1997 13:47:32 GMT
Dean Gaudet wrote:
> 
> On Fri, 14 Feb 1997, Marc Slemko wrote:
> 
> > On Fri, 14 Feb 1997, Dean Gaudet wrote:
> > 
> > > One idle thought I had was that we might try playing with the order of
> > > things -- do the shutdown(sd,1) after a select() timeout or a successful
> > > read(). 
> > 
> > Umm... I'm not sure that is nice.  The half close is the only way for the
> > client to know that we are terminating the connection.  If we don't do it
> > until later, the client won't know that the connection has been closed.
> > If the client doesn't know the connection is closed, it can't close its
> > half.  That would extend the lifetime of _all_ connections beyond what it 
> > is right now even with lingering_close.
> 
> Well my reasoning was this... if we happen to read() everything the client
> has written before we do the shutdown(), then there's a chance we won't
> trigger their tcp stack lameness that causes the FIN_WAIT_2 problem.  We
> should still do the shutdown(), we just might want to do it after one
> read().
> 

At that point, we could simply close the connection... No need for
the shutdown at all.
-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message