|
|
|
@ -132,7 +132,8 @@ public class TbHttpClient { |
|
|
|
this.webClient = WebClient.builder() |
|
|
|
.clientConnector(new ReactorClientHttpConnector(httpClient)) |
|
|
|
.defaultHeader(HttpHeaders.CONNECTION, "close") //In previous realization this header was present! (Added for hotfix "Connection reset")
|
|
|
|
.codecs(configurer -> configurer.defaultCodecs().maxInMemorySize(config.getMaxInMemoryBufferSizeInKb() * 1024)) |
|
|
|
.codecs(configurer -> configurer.defaultCodecs().maxInMemorySize( |
|
|
|
(config.getMaxInMemoryBufferSizeInKb() > 0 ? config.getMaxInMemoryBufferSizeInKb() : 256) * 1024)) |
|
|
|
.build(); |
|
|
|
} catch (SSLException e) { |
|
|
|
throw new TbNodeException(e); |
|
|
|
|