httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: httpd-2.0/server/mpm/worker worker.c
Date Wed, 19 Sep 2001 21:01:41 GMT
Aaron Bannert <aaron@clove.org> writes:

> On Wed, Sep 19, 2001 at 12:18:31PM -0700, Ryan Bloom wrote:
> > On Wednesday 19 September 2001 12:11 pm, Aaron Bannert wrote:
> > > So I have two questions:
> > >
> > > 1) How do we send back that error?
> > 
> > You can't.  There is no way to determine how busy the other processes are.
> 
> I'm not sure if simply closing the socket is the right answer
> either.

It certainly isn't right :)  Don't call accept() if you can't handle
another connection.

> Is there a more appropriate error code? "Server Temporarily Unavailable"
> or whatnot?

It is an avoidable problem.  There is no sense worrying about the error
code.

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message