hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1165573 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
Date Tue, 06 Sep 2011 09:12:38 GMT
Author: olegk
Date: Tue Sep  6 09:12:36 2011
New Revision: 1165573

URL: http://svn.apache.org/viewvc?rev=1165573&view=rev
Log:
Process pending requests in case of a connection request failure

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java?rev=1165573&r1=1165572&r2=1165573&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
Tue Sep  6 09:12:36 2011
@@ -374,6 +374,7 @@ public abstract class AbstractNIOConnPoo
             this.pending.remove(request);
             RouteSpecificPool<T, C, E> pool = getPool(route);
             pool.cancelled(request);
+            processPendingRequests();
         } finally {
             this.lock.unlock();
         }
@@ -390,6 +391,7 @@ public abstract class AbstractNIOConnPoo
             this.pending.remove(request);
             RouteSpecificPool<T, C, E> pool = getPool(route);
             pool.failed(request, request.getException());
+            processPendingRequests();
         } finally {
             this.lock.unlock();
         }
@@ -406,6 +408,7 @@ public abstract class AbstractNIOConnPoo
             this.pending.remove(request);
             RouteSpecificPool<T, C, E> pool = getPool(route);
             pool.timeout(request);
+            processPendingRequests();
         } finally {
             this.lock.unlock();
         }



Mime
View raw message