You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/07/05 12:21:35 UTC

[Bug 38995] httpd tries to communicate with the CGI daemon even after a graceful shutdown

https://issues.apache.org/bugzilla/show_bug.cgi?id=38995

Dave <da...@alfar.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dave@alfar.co.uk
            Version|2.0.55                      |2.4-HEAD

--- Comment #1 from Dave <da...@alfar.co.uk> ---
Although this bug was raised against 2.0 in 2006, this behavior still exists on
the latest 2.4. It can easily be reproduced by restarting Apache while running
a simple curl loop against a phpinfo script (in other words while the server is
only handling a single request to the CGI)

As ap_graceful_stop_signalled() was removed in 2.3, I suspect a modern
equivalent before the connect() in cleanup_script() would be:

    /* Don't connect while we're shutting down */
    if (ap_mpm_query(AP_MPMQ_MPM_STATE, &rc) == APR_SUCCESS &&
        rc == AP_MPMQ_STOPPING) {
        return APR_EGENERAL;
    }

although I cannot vouch for the appropriateness of the reported workaround.

-- 
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