netty5/resolver-dns/src
Norman Maurer e305488c5a Fix race-condition when using DnsCache in DnsNameResolver
Motivation:

The usage of DnsCache in DnsNameResolver was racy in general. First of the isEmpty() was not called in a synchronized block while we depended on synchronized. The other problem was that this whole synchronization only worked if the DefaultDnsCache was used and the returned List was not wrapped by the user.

Modifications:

- Rewrite DefaultDnsCache to not depend on synchronization on the returned List by using a CoW approach.

Result:

Fixes [#7583] and other races.
2018-01-23 08:04:33 +01:00
..
main/java/io/netty/resolver/dns Fix race-condition when using DnsCache in DnsNameResolver 2018-01-23 08:04:33 +01:00
test Update domains in DnsNameResolverTest 2018-01-02 19:08:40 -05:00