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
Hi Daniel, We currently don't use Git as a our source control system, but I will try to do a pull request today. If I have difficulties, I will ask for your help. Thanks, Dmitry Karpov -Original Message- From: Daniel Stenberg Sent: Thursday, June 3, 2021 1:58 PM To: Dmitry Karpov

Connection takes too long in dual-stack if IPv6 starting family is not available or blocked and has multiple addresses.

2021-06-03 Thread Dmitry Karpov via curl-library
Hello, Trying dual-stack, I noticed that if there are multiple IPv6 addresses for the host, but IPv6 is blocked somewhere (i.e. firewall in the router, VPN etc) then it takes too long to establish connection via available IPv4 addresses. I debugged this issue and noticed that it happens

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

Re: Libcurl reports 'Error in the HTTP2 framing layer' (16) for outgoing request.

2021-06-03 Thread Daniel Stenberg via curl-library
On Thu, 3 Jun 2021, Shikha Sharma wrote: Proposed solution: Ah, yes that looks interesting - especially since it fixes the problem for you! Are you able to make a pull-request out of that and submit, or would you like me to do it for you? Thanks! -- / daniel.haxx.se | Commercial curl

Re: Libcurl reports 'Error in the HTTP2 framing layer' (16) for outgoing request.

2021-06-03 Thread Shikha Sharma via curl-library
On 5/27/21 11:28 PM, Daniel Stenberg wrote: On Thu, 27 May 2021, Shikha Sharma via curl-library wrote: HTTP2 connection with prior knowledge initiated by curl, No TLS. Server sends GoAway frame after processing each request. I suspect the problem/bug here is that the request that reads the