httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject lingering_close performance idea
Date Mon, 10 Feb 1997 00:33:11 GMT
Wouldn't it be possible to delay our processing of the lingering_close,
and allow the child to be ready to serve more requests by simply *NOT*
closing the socket immediately.  Do the shutdown(sd, 1), add it to a list
of sockets waiting to be close()d along with a time(0) stamp.  Then clean
up and return to the accept() phase.  Before going into the accept mutex,
check the list of pending sockets, compare against time(0), deal with
close processing on any required.  Then do the accept(). 

Essentially this is a multithreaded solution. 

For sites with problems allocating enough descriptors there needs to be a
MaxPendingCloseSockets directive.

BTW, why the heck is the accept mutex needed for every single major OS,
didn't any of them get it right?  What goes wrong without it? 

Dean



Mime
View raw message