grpc / grpc-java

The Java gRPC implementation. HTTP/2 based RPC
https://grpc.io/docs/languages/java/
Apache License 2.0
11.36k stars 3.82k forks source link

Implement Happy Eyeballs #1190

Open ejona86 opened 8 years ago

ejona86 commented 8 years ago

With the addition of load balancing, the interaction with OkHttp connection handling has gotten a bit strange. OkHttp is currently ignoring the resolved address of the DnsNameResolver. In order to use the IP address returned by DnsNameResolver we would need to implement Happy Eyeballs. We will want to use Happy Eyeballs with Netty as well.

madongfly commented 8 years ago

We need more discussion about implementing Happy Eyeballs, but the sub problem of OkHttp ignores resolved address can be addressed, split it out to #1215.

ejona86 commented 8 years ago

Happy Eyeballs wasn't previously used on Android; it just looped through the resolved addresses in order. Other changes will get us to that same approximate level of behavior.

We still want Happy Eyeballs, but it doesn't have to be done for 1.0