tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r1613135 - /tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/FairBlockingQueue.java
Date Thu, 24 Jul 2014 13:50:23 GMT
Author: fhanik
Date: Thu Jul 24 13:50:23 2014
New Revision: 1613135

URL: http://svn.apache.org/r1613135
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=53367
Assume error until proven otherwise

Modified:
    tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/FairBlockingQueue.java

Modified: tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/FairBlockingQueue.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/FairBlockingQueue.java?rev=1613135&r1=1613134&r2=1613135&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/FairBlockingQueue.java
(original)
+++ tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/FairBlockingQueue.java
Thu Jul 24 13:50:23 2014
@@ -145,7 +145,7 @@ public class FairBlockingQueue<E> implem
                 waiters.addLast(c);
                 //unlock the global lock
                 lock.unlock();
-                boolean didtimeout = false;
+                boolean didtimeout = true;
                 InterruptedException interruptedException = null;
                 try {
                     //wait for the specified timeout
@@ -174,7 +174,7 @@ public class FairBlockingQueue<E> implem
                     } else {
                         throw interruptedException;
                     }
-                } 
+                }
             } else {
                 //we have an object, release
                 lock.unlock();



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


Mime
View raw message