curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Weird behavior when using DoH with the multi interface

From: kartatz via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 04 Jun 2024 19:45:58 -0300

 On Tue, 4 Jun 2024, Daniel Stenberg via curl-library wrote:

> Interesting case. I think we should make DoH requests exempt from that
> check/restriciton, as otherwise you can end up in this kind of catch-22
> situation.

kartatz, how about a patch like this?
 Thank you for the patch!

I checked out the latest master from GitHub and did a minimal curl build with CMake (-DHTTP_ONLY=ON) using OpenSSL as SSL backend.

Now the multi interface can resolve using DoH, but the program crashes as soon as it attempts to connect to the resolved address:

* Found bundle for host: 0x119dc60 [serially]
* Found bundle for host: 0x119dc60 [serially]
* Found bundle for host: 0x119dc60 [serially]
* Found bundle for host: 0x119dc60 [serially]
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Found bundle for host: 0x119dc60 [serially]
* No more connections allowed to host: 5
* No connections available.
* Host example.com:443 was resolved.
* IPv6: 2606:2800:21f:cb07:6820:80da:af6b:8b2c
* IPv4: 93.184.215.14
*   Trying 93.184.215.14:443...
* Hostname 'example.com' was found in DNS cache
[1]    15690 segmentation fault  ./main

I attached the gdb logs.

 


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-06-05