httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject Re: when accept() fails...
Date Thu, 24 Apr 1997 10:35:32 GMT
>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().

    #ken    :-(}

Mime
View raw message