Skip to content
Snippets Groups Projects
Commit 2a355843 authored by Harshika Dhoot's avatar Harshika Dhoot
Browse files

Merge branch 'users/preetisingh/connecttimeoutMaster' into 'master'

Update HTTPClient.java increasing connect timeout to 300 miliseconds so that...

See merge request !429
parents 87f390e9 25409018
No related branches found
No related tags found
1 merge request!429Update HTTPClient.java increasing connect timeout to 300 miliseconds so that...
Pipeline #152699 failed
...@@ -61,7 +61,7 @@ public abstract class HTTPClient { ...@@ -61,7 +61,7 @@ public abstract class HTTPClient {
headers.put(HEADER_CORRELATION_ID, correlationId); headers.put(HEADER_CORRELATION_ID, correlationId);
Client client = getClient(); Client client = getClient();
client.setReadTimeout(180000); client.setReadTimeout(180000);
client.setConnectTimeout(10000); client.setConnectTimeout(300000);
log.info("URL: = " + url); log.info("URL: = " + url);
WebResource webResource = client.resource(url); WebResource webResource = client.resource(url);
response = this.getClientResponse(httpMethod, payLoad, webResource, headers, token); response = this.getClientResponse(httpMethod, payLoad, webResource, headers, token);
...@@ -91,4 +91,4 @@ public abstract class HTTPClient { ...@@ -91,4 +91,4 @@ public abstract class HTTPClient {
currentHeaders.put("data-partition-id", value); currentHeaders.put("data-partition-id", value);
return currentHeaders; return currentHeaders;
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment