httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: systems without accept_mutex, bug?
Date Sat, 19 Apr 1997 20:07:05 GMT
Jim Jagielski wrote:
> 
> Dean Gaudet wrote:
> > 
> > On Sat, 19 Apr 1997, Ben Laurie wrote:
> > > Surely the blocked children will be scoreboarded as busy, so new children will
> > > be brought up. But it does mean that there will be more children than there
> > > should be.
> > 
> > Nope, the BUSY setting doesn't happen until after a socket has been
> > accept()ed.  So they're all recorded as being READY and not enough servers
> > are started.
> > 
> > It looks like this might be a problem we should solve.  The serializing
> > options are a workaround.  The only solution I can think of without
> > serialize is to make the listening sockets non-blocking... I wonder what
> > is actually faster, maybe serializing is a good thing.
> > 
> 
> I think the speed depends on the locking method, for some OSs
> FLOCK might be much faster than FCNTL

Could be. And, on SysV, there's also semaphores to consider.

Cheers,

Ben.

-- 
** Buy "Apache: The Definitive Guide" from http://www.links.org/apache **
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message