httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47635] New: Connections in Keep-Alive state keep accepting new requests after a graceful restart
Date Tue, 04 Aug 2009 11:09:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47635

           Summary: Connections in Keep-Alive state keep accepting new
                    requests after a graceful restart
           Product: Apache httpd-2
           Version: 2.2.12
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: prefork
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache@sagi.org


--- Comment #0 from Sagi Bashari <apache@sagi.org> 2009-08-04 04:09:33 PDT ---
I am using Apache 2.2.12 with the prefork MPM on Linux.

I am trying to send a graceful restart signal to the apply configuration
changes without affecting currently processed requests. This works, but I found
that the old configuration is still being applied on some new requests for some
time after the graceful restart. After investigation, I found that the new
requests are made on connections that were opened before the graceful restart
was issued, and were kept alive.

It looks like after sending the graceful restart signal, a process that
finishes handling the current request honors the client keep-alive request and
lets him send more requests over the same connection. I believe that a better
behavior would be to close the current connection as soon as it finishes
handling the current request (as if MaxKeepAliveRequests was reached).

I took a look in the trunk source code and I think that the code in
http_protocol.c attempts to do just that by not letting a connection to remain
persistent if mpm_state == AP_MPMQ_STOPPING. However, it looks like the prefork
MPM does not update the mpm_state of the child process after receiving a
graceful restart signal, so maybe that's what should be fixed.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message