diff options
author | Carl Mastrangelo <notcarl@google.com> | 2018-10-19 15:35:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 15:35:40 -0700 |
commit | 092bf2e39aaf960df2c6335667f4048452ec1fcc (patch) | |
tree | ca85aa69c45adedd356f21086d70c39565754385 /core/src/main/java/io/grpc/internal/DnsNameResolverProvider.java | |
parent | a61ac5ac6e42c2974eef399d4e10674108489295 (diff) | |
download | grpc-grpc-java-092bf2e39aaf960df2c6335667f4048452ec1fcc.tar.gz |
core: ignore localhost and IP addresses for JNDI (1.16.x backport)
This change is mainly to fix a test, but it also is an implementation of the proposal here: https://github.com/grpc/proposal/pull/79
In short:
* Do not do SRV or TXT lookups when the target name is `localhost`. This can be overriden by a system property
* Do not do SRV or TXT lookups when the target name is an IPv6 or IPv4 address. This _cannot_ be overriden. The constructed domains for these queries would themselves not be valid. (e.g. _grpclb._tcp.192.168.0.1)
* Speeds up initial connection when communicating over local host, since it is extremely uncommon that such a connection would need gRPCLB or SRV records
I expect to remove the system property after a release if no one asks about it.
Diffstat (limited to 'core/src/main/java/io/grpc/internal/DnsNameResolverProvider.java')
0 files changed, 0 insertions, 0 deletions