Skip to content

Commit

Permalink
hotfix: Upgrade http request timeout setting
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDNoper committed Sep 27, 2024
1 parent 964b98e commit ffeec3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ee/buerokratt/ruuter/helper/HttpHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void addHeadersIfNotNull(Map<String, String> headers, HttpHeaders httpHe

private HttpClient getHttpClient() {
return HttpClient.create()
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000)
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 15000)
.responseTimeout(Duration.ofMillis(15000))
.doOnConnected(conn ->
conn.addHandlerLast(new ReadTimeoutHandler(15000, TimeUnit.MILLISECONDS))
Expand Down

0 comments on commit ffeec3c

Please sign in to comment.