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

From: Sean Miller via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 9 Oct 2020 23:33:21 +0000 (UTC)

> (This might be a varation of this issue:
> https://github.com/curl/curl/issues/5747 )

Yes, I think you're correct. I looked for an existing issue but did not find this one.

> 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?

Yes, libcurl tells me about the socketpair. It's apparently AF_INET domain, too.

Maybe I'm dense, but how can I tell that I should treat this invocation of
CURLMOPT_SOCKETFUNCTION as a signal that DNS resolution is done? I'll
think more about this.

Thanks for your help. You're immensely responsive.

Regards,
Sean M.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-10-10