Skip to content

Commit 668d7df

Browse files
Revert "Add the option to tiemout per url and not per ip"
This reverts commit 6606f03.
1 parent bd04970 commit 668d7df

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

java/src/main/java/com/genexus/internet/HttpClientJavaLib.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.apache.http.conn.ssl.NoopHostnameVerifier;
2323
import org.apache.http.entity.ContentType;
2424
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
25-
import org.apache.http.impl.conn.SystemDefaultDnsResolver;
2625
import org.apache.http.protocol.HttpContext;
2726
import org.apache.http.auth.AuthSchemeProvider;
2827
import org.apache.http.auth.AuthScope;
@@ -69,19 +68,6 @@ public HttpClientJavaLib() {
6968
getPoolInstance();
7069
ConnectionKeepAliveStrategy myStrategy = generateKeepAliveStrategy();
7170
httpClientBuilder = HttpClients.custom().setConnectionManager(connManager).setConnectionManagerShared(true).setKeepAliveStrategy(myStrategy);
72-
String gxDns = System.getenv("GX_USE_FIRST_IP_DNS");
73-
if (gxDns == null || gxDns.trim().isEmpty()) {
74-
gxDns = System.getProperty("GX_USE_FIRST_IP_DNS");
75-
}
76-
if (gxDns != null && gxDns.trim().equalsIgnoreCase("true")) {
77-
httpClientBuilder.setDnsResolver(new SystemDefaultDnsResolver() {
78-
@Override
79-
public InetAddress[] resolve(String host) throws UnknownHostException {
80-
InetAddress[] all = super.resolve(host);
81-
return new InetAddress[] { all[0] };
82-
}
83-
});
84-
}
8571
cookies = new BasicCookieStore();
8672
streamsToClose = new Vector<>();
8773
}

0 commit comments

Comments
 (0)