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 .*;
@@ -95,7 +93,6 @@ private static void getPoolInstance() {
9593 @ Override
9694 protected void finalize () {
9795 this .closeOpenedStreams ();
98- executor .shutdown ();
9996 }
10097
10198 private ConnectionKeepAliveStrategy generateKeepAliveStrategy () {
@@ -617,9 +614,7 @@ public void execute(String method, String url) {
617614 }
618615 finally {
619616 if (Application .isJMXEnabled ()){
620- if (executor .isShutdown ())
621- executor = Executors .newSingleThreadExecutor ();
622- executor .submit (this ::displayHTTPConnections );
617+ this .displayHTTPConnections ();
623618 }
624619 if (getIsURL ()) {
625620 this .setHost (getPrevURLhost ());
@@ -631,8 +626,7 @@ public void execute(String method, String url) {
631626 resetStateAdapted ();
632627 }
633628 }
634-
635- private static ExecutorService executor = Executors .newSingleThreadExecutor ();
629+
636630 private synchronized void displayHTTPConnections (){
637631 Iterator <HttpRoute > iterator = storedRoutes .iterator ();
638632 while (iterator .hasNext ()) {
You can’t perform that action at this time.
0 commit comments