Skip to content

Commit

Permalink
Merge pull request #28 from Appdynamics/commons-2.2.13-update
Browse files Browse the repository at this point in the history
Commons 2.2.13 update
  • Loading branch information
satish-m authored Aug 27, 2024
2 parents 1116ea6 + 3e7ab14 commit 48a3f7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>com.appdynamics.extensions</groupId>
<artifactId>url-monitoring-extension</artifactId>
<version>2.2.0</version>
<version>2.2.1</version>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -31,18 +31,18 @@
<dependency>
<groupId>com.appdynamics</groupId>
<artifactId>appd-exts-commons</artifactId>
<version>2.2.6</version>
<version>2.2.13</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
<version>2.12.1</version>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
Expand Down Expand Up @@ -76,8 +76,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import org.asynchttpclient.proxy.ProxyServer;
import org.slf4j.Logger;

import java.time.Duration;


/**
* Factory to create the suitable client object based on the authentication type
Expand All @@ -46,8 +48,8 @@ public DefaultAsyncHttpClient createHttpClient(ClientConfig clientConfig, Defaul
try {
builder.setUseInsecureTrustManager(clientConfig.isIgnoreSslErrors())
.setMaxRedirects(clientConfig.getMaxRedirects())
.setConnectTimeout(defaultSiteConfig.getConnectTimeout())
.setRequestTimeout(defaultSiteConfig.getSocketTimeout())
.setConnectTimeout(Duration.ofMillis(defaultSiteConfig.getConnectTimeout()))
.setRequestTimeout(Duration.ofMillis(defaultSiteConfig.getSocketTimeout()))
.setMaxConnectionsPerHost(clientConfig.getMaxConnPerRoute())
.setMaxConnections(clientConfig.getMaxConnTotal())
.setUserAgent(clientConfig.getUserAgent())
Expand Down

0 comments on commit 48a3f7d

Please sign in to comment.