You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Huy Tran <Hu...@DadeBehring.com> on 2000/02/10 17:15:57 UTC

mod_jserv/5738: JServ doesn't get a shutdown signal

>Number:         5738
>Category:       mod_jserv
>Synopsis:       JServ doesn't get a shutdown signal
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Feb 10 08:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Huy_Tran@DadeBehring.com
>Release:        1.3.9
>Organization:
apache
>Environment:
Windows NT, JDK1.2, JSDK2.0, ajpv12.
>Description:
when shutting down Apache server by running "Apache -k shutdown", 
Apache suppose to send Jserv a shutdown signal to do any cleanup.
However, somehow Jserv doesn't get the shutdown signal. Hence, it
doesn't call servlets' destroy methods. 
This works fine with Apache1.3.6 and Jserv1.0.5b, which use ajpv11.
>How-To-Repeat:
Write a simple servlet that create/write some file in the destroy() method.
Invoke this servlet. Shutdown Apache server. The file is not created - this
mean the destroy() method is not invoked.
Repeat the same with Apache1.3.6 and Jserv1.0.5b, the file is created -- this
mean the destroy() method was invoked. 
>Fix:
I exam the Java code in Jserv. It seems to be ok. I Suspect that the C code
in mod_jserv mishadle the protocol. Unfortuately, I don't have a C devlopment
enviroment setup.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]