If you would like to increase the SSL handshake timeout of the HttpClient, you can create a bean and add it in @Configuration annotated class and then autowire(inject) this bean where required in your Service.
@Bean
public WebClient webClient() {
Http11SslContextSpec http11SslContextSpec = Http11SslContextSpec.forClient();
HttpClient client = HttpClient.create()
.secure(spec -> spec.sslContext(http11SslContextSpec)
.handshakeTimeout(Duration.ofSeconds(30));
WebClient client = WebClient.builder()
.baseUrl(SOME_BASE_API_URL)
.clientConnector(new ReactorClientHttpConnector(httpClient))
.build();
return client;
}
Reference: https://projectreactor.io/docs/netty/release/reference/index.html#ssl-tls-timeout