Buy commercial curl support from WolfSSL. 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
himself.
Re: Phantom socket with threaded resolver
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 9 Oct 2020 23:13:04 +0200 (CEST)
On Fri, 9 Oct 2020, Sean Miller via curl-library wrote:
(This might be a varation of this issue:
https://github.com/curl/curl/issues/5747 )
> In response, libcurl appears to create a socket for DNS resolution without
> asking for it via CURLOPT_OPENSOCKETFUNCTION.
That's correct, because it isn't a regular socket. It's a socketpair.
CURLMOPT_SOCKETFUNCTION should get told about it though. Doesn't it?
> Is this behavior intentional? Is there a recommended way to either force
> libcurl to ask for the socket, or else avoid telling me about it? Where did
> I go wrong?
Yes and no. It is a socketpair used to signal when the resolve is complete. It
isn't a plain old socket so CURLOPT_OPENSOCKETFUNCTION cannot be used for it.
Date: Fri, 9 Oct 2020 23:13:04 +0200 (CEST)
On Fri, 9 Oct 2020, Sean Miller via curl-library wrote:
(This might be a varation of this issue:
https://github.com/curl/curl/issues/5747 )
> In response, libcurl appears to create a socket for DNS resolution without
> asking for it via CURLOPT_OPENSOCKETFUNCTION.
That's correct, because it isn't a regular socket. It's a socketpair.
CURLMOPT_SOCKETFUNCTION should get told about it though. Doesn't it?
> Is this behavior intentional? Is there a recommended way to either force
> libcurl to ask for the socket, or else avoid telling me about it? Where did
> I go wrong?
Yes and no. It is a socketpair used to signal when the resolve is complete. It
isn't a plain old socket so CURLOPT_OPENSOCKETFUNCTION cannot be used for it.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2020-10-09