RE: Happy Eyeballs mechanism may start from IPv4 family if c-ares resolver reply for IPv6 comes first.

2021-06-03 Thread Dmitry Karpov via curl-library
via curl-library Cc: Dmitry Karpov Subject: Re: Happy Eyeballs mechanism may start from IPv4 family if c-ares resolver reply for IPv6 comes first. On Thu, 3 Jun 2021, Dmitry Karpov via curl-library wrote: > Here is the proposed fix for c-ares resolver that helped to mitigate the > p

Re: Happy Eyeballs mechanism may start from IPv4 family if c-ares resolver reply for IPv6 comes first.

2021-06-03 Thread Daniel Stenberg via curl-library
On Thu, 3 Jun 2021, Dmitry Karpov via curl-library wrote: Here is the proposed fix for c-ares resolver that helped to mitigate the problem: Thanks! Any chance you can make a pull-request out of this and submit it at https://github.com/curl/curl/pulls ? If not, I can do it for you. --

Happy Eyeballs mechanism may start from IPv4 family if c-ares resolver reply for IPv6 comes first.

2021-06-03 Thread Dmitry Karpov via curl-library
Hello, Trying dual-stack on some embedded platform, I noticed that quite frequently (20%) libCurl starts from IPv4 regardless the Happy Eyeballs timeout value. After debugging this issue, I noticed that this happens if c-ares resolver response for IPv6 family comes before IPv4 (which was