Skip to content

Commit

Permalink
Merge branch 'GitHub-MR-30' into 'master'
Browse files Browse the repository at this point in the history
Git hub mr 30 - allows httpclient to use proxy values from system settings

See merge request kount/third_party/kount-ris-java-sdk!37
  • Loading branch information
dharp-kount committed Jan 6, 2022
2 parents c6f6dbe + c3d5dc6 commit f7149cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kount-ris-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.kount</groupId>
<artifactId>kount-java-parent</artifactId>
<version>7.3.12</version>
<version>7.4.0</version>
</parent>

<artifactId>kount-ris-sdk</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ private CloseableHttpClient getHttpClient() {
synchronized (this) {
if (httpClient == null) {
httpClient = HttpClients.custom()
.useSystemProperties()
.setConnectionTimeToLive(connectionTimeToLive, TimeUnit.MINUTES)
.setDefaultSocketConfig(SocketConfig.custom()
.setSoTimeout(this.readTimeout)
Expand Down Expand Up @@ -184,8 +185,6 @@ public Reader send(Map<String, String> params) throws RisTransportException {

logger.debug(builder.toString());
}
} catch (Exception e) {
throw e;
}
} catch (Exception ioe) {
logger.error("Error fetching RIS response", ioe);
Expand All @@ -207,8 +206,6 @@ public ByteArrayInputStream readAllIntput(HttpEntity entity) throws IOException

buffer.flush();
return new ByteArrayInputStream(buffer.toByteArray());
} catch (Exception e) {
throw e;
} finally {
EntityUtils.consume(entity);
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.kount</groupId>
<artifactId>kount-java-parent</artifactId>
<version>7.3.12</version>
<version>7.4.0</version>
<packaging>pom</packaging>

<name>Kount Java SDK</name>
Expand Down
2 changes: 1 addition & 1 deletion sdk-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.kount</groupId>
<artifactId>kount-java-parent</artifactId>
<version>7.3.12</version>
<version>7.4.0</version>
</parent>

<artifactId>sdk-integration-tests</artifactId>
Expand Down

0 comments on commit f7149cd

Please sign in to comment.