cURL / Mailing Lists / curl-library / Single Mail


curl_multi_fdset not returns fdset when easy handle is in resolving state (when using threaded resolver).

From: Arunprasad Rajkumar <>
Date: Sun, 5 Aug 2012 14:00:09 +0530

Suppose I use curl_multi interface to handle my transfer, I can get socket
descriptors from multi using curl_multi_fdset. But If I configure curl to
multi threaded name resolver, it doesn't returns any fdset until connection

I can understand the technical difficulties behind this scene & but why
don't we create a UDP socket(socketpair or pipe may good) temporarily until
connection begins? This socket can be signaled from the resolver thread
once it finishes its job. User can get this socket via curl_multi_fdset &
wait until resolver finished. I hope it will avoid the burden of handling
two different cases while doing transfers with curl(1. Until name resolving
& after connection).

But using ares should avoid this right?

*Arunprasad Rajkumar*

List admin:
Received on 2012-08-05