httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <>
Subject Re: when accept() fails...
Date Thu, 24 Apr 1997 14:17:53 GMT
On Thu, 24 Apr 1997, Rodent of Unusual Size wrote:

> >From the fingers of Marc Slemko flowed the following:
> >
> >On various OSes (UnixWare, Solaris sometimes, perhaps a few others)
> >accept() starts returning an error for some reason.  Exactly what depends
> >on the OS, but what then happens is Apache gets into a horrible loop where
> >it is just trying an accept() only to have it come back with an error
> >right away.  While I suspect all of these are due to various problems in
> >the kernels, it would be nice if Apache would do something better when
> >this happens.
> >
> >Unfortunately, I can't really think of how anything useful could be done.
> >If anyone has any ideas...
>     Well, what about incrementing a consecutive-errors counter and
>     croaking if it hits 16?  Reset after each successful accept().

Problem is that the child is the one doing the accepts, while the parent
would be the one to try something like closing and reopening the socket.
I'm not sure that the child simply exiting would help, although it could

View raw message