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 13
13
import java .security .cert .CertificateException ;
14
14
import java .util .*;
15
15
import java .net .URI ;
16
- import java .util .concurrent .ExecutorService ;
17
- import java .util .concurrent .Executors ;
18
16
import javax .net .ssl .SSLContext ;
19
17
20
18
import org .apache .http .*;
@@ -96,7 +94,6 @@ private static void getPoolInstance() {
96
94
@ Override
97
95
protected void finalize () {
98
96
this .closeOpenedStreams ();
99
- executor .shutdown ();
100
97
}
101
98
102
99
private ConnectionKeepAliveStrategy generateKeepAliveStrategy () {
@@ -618,9 +615,7 @@ public void execute(String method, String url) {
618
615
}
619
616
finally {
620
617
if (Application .isJMXEnabled ()){
621
- if (executor .isShutdown ())
622
- executor = Executors .newSingleThreadExecutor ();
623
- executor .submit (this ::displayHTTPConnections );
618
+ this .displayHTTPConnections ();
624
619
}
625
620
if (getIsURL ()) {
626
621
this .setHost (getPrevURLhost ());
@@ -632,8 +627,7 @@ public void execute(String method, String url) {
632
627
resetStateAdapted ();
633
628
}
634
629
}
635
-
636
- private static ExecutorService executor = Executors .newSingleThreadExecutor ();
630
+
637
631
private synchronized void displayHTTPConnections (){
638
632
Iterator <HttpRoute > iterator = storedRoutes .iterator ();
639
633
while (iterator .hasNext ()) {
You can’t perform that action at this time.
0 commit comments