geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r597068 - /geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java
Date Wed, 21 Nov 2007 13:19:53 GMT
Author: jgenender
Date: Wed Nov 21 05:19:48 2007
New Revision: 597068

URL: http://svn.apache.org/viewvc?rev=597068&view=rev
Log:
GERONIMO-3614 - set executor to final from static

Modified:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java

Modified: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java?rev=597068&r1=597067&r2=597068&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java (original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java Wed
Nov 21 05:19:48 2007
@@ -57,7 +57,7 @@
     private SocketConnector connector;
     
     /** The thread pool. */
-    private static ExecutorService threadPool;
+    private final ExecutorService threadPool;
     
     /** The HttpIoHandler handler. */
     private HttpIoHandler handler = new HttpIoHandler();
@@ -112,6 +112,7 @@
             connector = new SocketConnector(Runtime.getRuntime().availableProcessors(), threadPool);
 
         connector.getDefaultConfig().setConnectTimeout(this.connectionTimeout / 1000);
+        connector.setWorkerTimeout(1);
 
     }
 



Mime
View raw message