- Clarify stop patch (inline, it's very small).
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 11 Oct 2007 17:50:42 +0000 (17:50 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 11 Oct 2007 17:50:42 +0000 (17:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@583895 13f79535-47bb-0310-9956-ffa450edef68

STATUS

diff --git a/STATUS b/STATUS
index cc0bdba..b72aacf 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -36,7 +36,32 @@ PATCHES PROPOSED TO BACKPORT:
   -1: 
 
 * Call StopAwait at StandardServer.stop as port==-1
-  +1: pero
+
+Index: java/org/apache/catalina/core/StandardServer.java
+===================================================================
+--- java/org/apache/catalina/core/StandardServer.java  (revision 583866)
++++ java/org/apache/catalina/core/StandardServer.java  (working copy)
+@@ -360,7 +360,7 @@
+         if( port==-1 ) {
+             while( true ) {
+                 try {
+-                    Thread.sleep( 100000 );
++                    Thread.sleep( 10000 );
+                 } catch( InterruptedException ex ) {
+                 }
+                 if( stopAwait ) return;
+@@ -747,6 +747,9 @@
+         // Notify our interested LifecycleListeners
+         lifecycle.fireLifecycleEvent(AFTER_STOP_EVENT, null);
++        if (port == -1)
++            stopAwait();
++
+     }
+     public void init() throws Exception {
+
+  +1: pero, remm
   -1: No link to proposed fix given.
   
 * Arrange doc of connectors.