DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28167>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28167

Children don't close the main socket immediately on receipt of a graceful 
restart

           Summary: Children don't close the main socket immediately on
                    receipt of a graceful restart
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: worker
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


If you're running Apache behind a load balancer, an effective way to stop Apache
gracefully is to change the listen port to something else (say 81) and
gracefully restart.  Long-lived downloads will continue (making modem users
happy) but new connections will (in theory) be refused, allowing your load
balancer to pick another box immediately.  After all connections finish or time
out, Apache will stop.

That's the theory.

In practice, the child processes fail to close the main socket after receiving a
graceful restart -- they keep the main socket open as well as the worker sockets
that are actually doing the work.

The fix that I'm trying is to close all the listeners' sockets when the listener
thread exits.  This seems to work, but I need to do some more testing before
submitting diffs.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to