httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46963] New: KeepAliveTimout prevents child process from exiting cleanly with winnt_mpm
Date Fri, 03 Apr 2009 17:16:58 GMT

           Summary: KeepAliveTimout prevents child process from exiting
                    cleanly with winnt_mpm
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mpm_winnt

Version 2.2.11

My assumption is if a persistent connection is made to the server with
KeepAlive On, the request thread will not terminate until the KeepAlive timeout
or the connection is closed by the client.

in server/mpm/winnt/child.c the child waits for the threads to exit.  Around
line 1119.  It waits X seconds where X is the time specified in the Timeout
directive.  The thread is forcibly closed after X seconds (line 1180) and then
destroy the child pool properly (line 1208).

However, in server/mpm/winnt/mpm_winnt.c the parent process decides it's time
to kill the child after a hardcoded 30 seconds (line 964).  This ends up
killing the child process without destroying the child pool.  Thus, registered
callbacks fail to properly cleanup.

This may also be linked to Bug 41743 which also describes shutdown errors with
KeepAlive On

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message