You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2016/04/21 12:46:53 UTC

svn commit: r1740282 - /httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/CPool.java

Author: olegk
Date: Thu Apr 21 10:46:53 2016
New Revision: 1740282

URL: http://svn.apache.org/viewvc?rev=1740282&view=rev
Log:
HTTPASYNC-105: socketTimeout is not reset back to default after a request that has specific timeout

Modified:
    httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/CPool.java

Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/CPool.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/CPool.java?rev=1740282&r1=1740281&r2=1740282&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/CPool.java (original)
+++ httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/impl/nio/conn/CPool.java Thu Apr 21 10:46:53 2016
@@ -74,7 +74,6 @@ class CPool extends AbstractNIOConnPool<
     @Override
     protected void onRelease(final CPoolEntry entry) {
         final NHttpClientConnection conn = entry.getConnection();
-        entry.setSocketTimeout(conn.getSocketTimeout());
         conn.setSocketTimeout(0);
     }