> Host resolution seems to be OK, the curl connection instead reports an error 
> from inside OpenSSL:

I guess it will help if you provide full Curl verbose output for both cases, 
otherwise, it is not clear if the resolution was the same.
For example, ares_getaddrinfo() might give IPv6 name resolution vs IPv4 one 
when using the old approach.

>    result == 35 : Error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection 
> to license.microanalytics.org:443 )

Did you try plain HTTP? OpenSSL error might have happened after connection was 
established, so it was too late to choose a different IP stack.
Full verbose log may help to get more details.

> I'm not sure how to do that, sorry.

You can use the CURLOPT_INTERFACE option. It gives the ability to specify the 
network interface by IP address.

Thanks,
Dmitry Karpov
 

-----Original Message-----
From: curl-library <curl-library-boun...@lists.haxx.se> On Behalf Of Peter 
Krefting via curl-library
Sent: Friday, January 20, 2023 12:20 AM
To: Dmitry Karpov via curl-library <curl-library@lists.haxx.se>
Cc: Peter Krefting <pe...@softwolves.pp.se>
Subject: [EXTERNAL] RE: IPv6 issues with ares_getaddrinfo()

Hi!

> Do you get host resolution error with the curl 7.87.0 and c-ares
> 1.18.1 or the host resolution is OK?

Host resolution seems to be OK, the curl connection instead reports an error 
from inside OpenSSL:

   result == 35 : Error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in
   connection to license.microanalytics.org:443 )

I have enabled CURLOPT_VERBOSE, and it outputs the above error when using a 
build that enables ares_getaddrinfo. The error is not printed when running 
without, and I instead get a IPv4 connection that goes through.

> Can you try forcing libcurl to use every global IPv6 address for each 
> network interface and see if it helps?

I'm not sure how to do that, sorry.

--
\\// Peter - http://www.softwolves.pp.se/
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to