File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
java/src/main/java/com/genexus/internet Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1313import java .security .cert .CertificateException ;
1414import java .util .*;
1515import java .net .URI ;
16- import java .util .concurrent .ExecutorService ;
17- import java .util .concurrent .Executors ;
1816import javax .net .ssl .SSLContext ;
1917
2018import org .apache .http .*;
@@ -96,7 +94,6 @@ private static void getPoolInstance() {
9694 @ Override
9795 protected void finalize () {
9896 this .closeOpenedStreams ();
99- executor .shutdown ();
10097 }
10198
10299 private ConnectionKeepAliveStrategy generateKeepAliveStrategy () {
@@ -602,9 +599,7 @@ public void execute(String method, String url) {
602599 }
603600 finally {
604601 if (Application .isJMXEnabled ()){
605- if (executor .isShutdown ())
606- executor = Executors .newSingleThreadExecutor ();
607- executor .submit (this ::displayHTTPConnections );
602+ this .displayHTTPConnections ();
608603 }
609604 if (getIsURL ()) {
610605 this .setHost (getPrevURLhost ());
@@ -616,8 +611,7 @@ public void execute(String method, String url) {
616611 resetStateAdapted ();
617612 }
618613 }
619-
620- private static ExecutorService executor = Executors .newSingleThreadExecutor ();
614+
621615 private synchronized void displayHTTPConnections (){
622616 Iterator <HttpRoute > iterator = storedRoutes .iterator ();
623617 while (iterator .hasNext ()) {
You can’t perform that action at this time.
0 commit comments