You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to configure underlying HttpClient in spring boot #690
I have a Spring Boot application that uses the library (thanks for all hard work here!) to create non-blocking HTTP clients.
I want to customize the underlying Netty HttpClient used by Feign to change the NameResolverProvider configuration so that DNS resolution retries with TCP when UDP fails.
This is possible in pure Netty using the following configuration (as suggested in this issue):
This is important in our environment because we sometimes hit DNS resolution failures over UDP, and need the fallback to TCP for reliability.
I haven't found an easy way to achieve it - HttpClient is created in NettyClientHttpConnectorBuilder.buildNettyClientHttpConnector, and there is no callback or customization logic there. The code of WebReactiveFeign.Builder allows to set custom HttpClient, but I didn't find a way to do this.
changed the title [-]Add ability to configure HttpClient in spring boot[/-][+]Add ability to configure underlying HttpClient in spring boot[/+]on Apr 22, 2025
Activity
[-]Add ability to configure HttpClient in spring boot[/-][+]Add ability to configure underlying HttpClient in spring boot[/+]