Author: markt
Date: Thu Oct 27 08:58:50 2011
New Revision: 1189685

URL: http://svn.apache.org/viewvc?rev=1189685&view=rev
Log:
Fix intermittent unit test failure for
TestCometProcessor.testCometConnectorStop
Previously either the running or close field could end the loop but only
close performed the necessary clean-up. This patch removes the ability
for running to end the loop.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1189685&r1=1189684&r2=1189685&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Thu Oct 27 
08:58:50 2011
@@ -1066,8 +1066,8 @@ public class NioEndpoint extends Abstrac
          */
         @Override
         public void run() {
-            // Loop until we receive a shutdown command
-            while (running) {
+            // Loop until destroy() is called
+            while (true) {
                 try {
                     // Loop if endpoint is paused
                     while (paused && (!close) ) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to