netty5/resolver-dns/src
Norman Maurer 2fa7a0aa57
Keep the amount of scheduled tasks for DefaultDnsCache at a minimum (#8187)
Motivation:

We are currently always remove all entries from the cache for a hostname if the lowest TTL was reached but schedule one for each of the cached entries. This is wasteful.

Modifications:

- Reimplement logic to schedule TTL to only schedule a new removal task if the requested TTL was actual lower then the one for the already scheduled task.
- Ensure we only remove from the internal map if we did not replace the Entries in the meantime.

Result:

Less overhead in terms of scheduled tasks for the DefaultDnsCache
2018-08-15 09:07:13 +02:00
..
main/java/io/netty/resolver/dns Keep the amount of scheduled tasks for DefaultDnsCache at a minimum (#8187) 2018-08-15 09:07:13 +02:00
test Correctly handle hostnames with and without trailing dot in the DefaultDnsCache and use it for searchdomains. (#8181) 2018-08-10 08:53:59 +02:00