Skip to content

Commit

Permalink
Use unlimited buffer memory size for the FlowableHttpClient with Spri…
Browse files Browse the repository at this point in the history
…ng WebClient
  • Loading branch information
filiphr committed Apr 3, 2024
1 parent 411d645 commit d652df6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public SpringWebClientFlowableHttpClient(HttpClientConfig config) {
WebClient.Builder webClientBuilder = WebClient.builder();
webClientBuilder = webClientBuilder.clientConnector(new ReactorClientHttpConnector(httpClient));

this.webClient = webClientBuilder.build();
this.webClient = webClientBuilder
.codecs(codecs -> codecs.defaultCodecs().maxInMemorySize(-1))
.build();
this.initialRequestTimeout = Duration.ofMillis(config.getSocketTimeout());
}

Expand Down

0 comments on commit d652df6

Please sign in to comment.