Skip to content

Commit

Permalink
Configures http client response-timeout, if provided via client options
Browse files Browse the repository at this point in the history
Signed-off-by: kvmw <mshamsi@broadcom.com>
  • Loading branch information
kvmw committed Jan 8, 2025
1 parent 3118eb9 commit 4b091ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public static ClientHttpConnector create(ClientOptions options) {
Math.toIntExact(options.getConnectionTimeout().toMillis()));
}

if (options.getReadTimeout() != null) {
httpClient = httpClient.responseTimeout(options.getReadTimeout());
}

return new ReactorClientHttpConnector(httpClient);
}

Expand Down

0 comments on commit 4b091ec

Please sign in to comment.