Open alanhu-dev opened 1 year ago
Yep, that is a current limitation.
The current fastFallback code is using the synchronous Dns API here
eventListener.dnsStart(call, socketHost)
val result = address.dns.lookup(socketHost)
We have a new AsyncDns API, and an Android implementation but it's not yet wired up fully.
We should leave this open as it's worth progressing, but I think once fastFallback resolved bad IPv6 network setups, this took a back seat.
Hello, esteemed developers. I'm currently trying to integrate Volley and OkHttp in our project. Our network layer relies on Volley, but we also want to leverage OkHttp's new feature: Happy Eyeballs. Below is a code snippet of how I've integrated them, and everything seems to work as expected, both in terms of requests and responses. However, it appears that the Happy Eyeballs feature isn't taking effect. When I use Wireshark to monitor the network traffic, I can clearly see that both IPv6 and IPv4 records are being sent out, but the response for IPv4 arrives much earlier. Nevertheless, it continues to wait until the IPv6 response comes in before proceeding to call the API.
https://gist.github.com/SUPERYAO541/1000c3d77c13c3609a54633eed008d5f
Wireshark (only 1 api call) https://i.imgur.com/sDh6lKR.png