-
Notifications
You must be signed in to change notification settings - Fork 41.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebClient Timeouts and SSL Configuration are incompatible #36263
Comments
Is someone working on it . I would like to contribute on this , but I would request if I can get little more overview on this . |
Thanks for the offer, @ramanpopli. If you’d like to work on an issue where we provide some guidance, please watch for one labelled as ideal for contribution or, if you haven’t contributed before, first-timers only. |
If we would make the public static HttpClient applyBundle(SslBundle sslBundle, HttpClient httpClient) {
return new SslConfigurer(sslBundle).configure(httpClient);
} then we could workaround that problem with: HttpClient httpClient = HttpClient.create().option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 1);
httpClient = SslConfigurer.applyBundle(sslBundles.getBundle("demobundle"), httpClient); // SSL
WebClient webClient = builder
.clientConnector(new ReactorClientHttpConnector(httpClient)) // TIMEOUT
.build(); ( |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
okay..
but i'm not sure if this fits all purposes as this is "globally" then and will also affect nonssl webclients as well |
You're right in that this would be global, affecting all auto-configured In my application I have several other services I need to call and the corresponding |
I followed the Spring Boot and Spring Framework documentations to configure a WebClient with Spring Boot 3.1.1.
I have
These configurations are incompatible since they both set the
ClientHttpConnector
on theWebClient.Builder
; the second configuration overrides the first one.Here is a small application to reproduce:
with the following properties:
In that situation, a timeout does not occur but if I switch
// TIMEOUT
with// SSL
lines, a timeout will occur but SSL is no more configured.I didn't find a proper way to configure this without recreating the full SSL configuration in my application.
The text was updated successfully, but these errors were encountered: