reactor / reactor-netty

TCP/HTTP/UDP/QUIC client/server with Reactor over Netty

Home Page:https://projectreactor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enabling DNS retryOnTimeout with TCP

claraccio opened this issue · comments

Netty sometimes get a 5000ms timeout error when querying DNS. e.g.
Caused by: io.netty.resolver.dns.DnsNameResolverTimeoutException: [19509: /172.33.0.2:53] DefaultDnsQuestion(<hidden> IN A) query '19509' via UDP timed out after 5000 milliseconds (no stack trace available)

The team has now merged this branch that allows for a retry over TCP instead of UDP, in case of timeout.
I do not think it is possible to set this boolean from reactor-netty?
I would expect it to be in the NameResolverProvider.NameResolverSpec

The merged branch:
netty/netty#13757

@claraccio You should be able to test the new configuration with 1.1.17-SNAPSHOT version.

I'll let it run in production and see, it's not an error that pops out often.