Skip to content

Commit

Permalink
Set the connection request timeout (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Nov 30, 2022
1 parent 9d4aeb8 commit 72bcef2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ protected HttpClientBuilder createHttpClientBuilder() {
.custom()
.setSocketTimeout(timeoutMilliSeconds)
.setConnectTimeout(timeoutMilliSeconds)
.setConnectionRequestTimeout(timeoutMilliSeconds)
.setCircularRedirectsAllowed(true)
.build();

Expand Down

0 comments on commit 72bcef2

Please sign in to comment.