tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1523830 - /tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
Date Mon, 16 Sep 2013 23:03:03 GMT
Author: markt
Date: Mon Sep 16 23:03:03 2013
New Revision: 1523830

URL: http://svn.apache.org/r1523830
Log:
Fix logic where poller thread could get stuck in infinite loop on connector stop.

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

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=1523830&r1=1523829&r2=1523830&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Mon Sep 16 23:03:03 2013
@@ -1567,7 +1567,7 @@ public class AprEndpoint extends Abstrac
             while (pollerRunning) {
 
                 // Loop if endpoint is paused
-                while (paused) {
+                while (pollerRunning && paused) {
                     try {
                         Thread.sleep(1000);
                     } catch (InterruptedException e) {



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


Mime
View raw message