bojan 01/11/08 13:43:25 Modified: src/doc serverxml.html Log: Add a note about the minimum of two threads required to shutdown Tomcat through Ajp12 Revision Changes Path 1.11 +11 -0 jakarta-tomcat/src/doc/serverxml.html Index: serverxml.html =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/doc/serverxml.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- serverxml.html 2001/11/05 10:07:35 1.10 +++ serverxml.html 2001/11/08 21:43:24 1.11 @@ -4,7 +4,7 @@- + @@ -481,6 +481,17 @@
<Ajp12Connector port="8007" ajpidFile="conf/ajp12_2.id" />+ +
If using Ajp12Connector to shutdown Tomcat, the minimum of 2 +threads have to be configured, or the shutdown will not be successful. Default +configuration (no maxThreads) configures more then 2 threads and +should work fine.+ +
You need two threads since one is always supposed to be listening, and the +other does the actual shutting down. Since the shutdown thread tries to +unblock the listening thread, it hangs if there isn't anyone listening.