netty5/resolver-dns/src
Trustin Lee 120ffaf880 Use separate query ID space for different DNS servers
Related: #3972

Motivation:

DnsNameResolver limits the number of concurrent in-progress DNS queries
to 65536 regardless the number of DNS servers it communicates with. When
the number of available DNS servers are more than just one, we end up
using much less (65536 / numDnsServers) query IDs per DNS server, which
is non-optimal.

Modifications:

- Replace the query ID and context management with
  DnsQueryContextManager
  - Eash DNS server gets its own query ID space

Result:

Much bigger query ID space, and thus there's less chance of getting the
'query ID space exhaustion' error
2015-11-09 15:25:13 -08:00
..
main/java/io/netty/resolver/dns Use separate query ID space for different DNS servers 2015-11-09 15:25:13 -08:00
test [#4289] Use a mock DNS Server for dns tests. 2015-10-10 20:27:34 +02:00