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 2006/03/16 14:00:25 UTC

DO NOT REPLY [Bug 38995] New: - httpd tries to communicate with the CGI daemon even after a graceful shutdown

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=38995>.
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=38995

           Summary: httpd tries to communicate with the CGI daemon even
                    after a graceful shutdown
           Product: Apache httpd-2
           Version: 2.0.55
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cgid
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: kiranm@hp.com


While running the bench marking tool, ab (options are -c 30 -n 400), on a cgi
script that takes about 30 seconds to complete, I notice the following error in
the logfile when I do a graceful shutdown. This is on 2.0.55 version of Apache.
The error I get is :

[Thu Mar 02 17:23:11 2006] [error] [client 15.42.227.146] daemon couldn't find C
GI process for connection 5
[Thu Mar 02 17:23:11 2006] [error] [client 15.42.227.146] daemon couldn't find C
GI process for connection 67

For every concurrent request issued, there seems to be an error.

I could fix this with some modifications to mod_cgid.c. I found that the httpd
process serving the CGI request tries to contact the daemon in the cleanup
callback even when a graceful restart has been issued. A check for a graceful
restart situation should be made before the connect. The following condition at
the beginning of cleanup_script() solves the problem :

   if (ap_graceful_stop_signalled())
       return APR_EGENERAL;

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

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