hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1299039 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java
Date Fri, 09 Mar 2012 20:35:24 GMT
Author: olegk
Date: Fri Mar  9 20:35:24 2012
New Revision: 1299039

URL: http://svn.apache.org/viewvc?rev=1299039&view=rev
Log:
Do not time out persistent connections in the pool

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java?rev=1299039&r1=1299038&r2=1299039&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/PoolingClientAsyncConnectionManager.java
Fri Mar  9 20:35:24 2012
@@ -226,6 +226,8 @@ public class PoolingClientAsyncConnectio
                         }
                         this.log.debug("Connection " + format(entry) + " can be kept alive
" + s);
                     }
+                    // Do not time out pooled connection
+                    managedConn.setSocketTimeout(0);
                 }
             } finally {
                 this.pool.release(entry, managedConn.isMarkedReusable());



Mime
View raw message