cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Arunprasad Rajkumar <ararunprasad_at_gmail.com>
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
begins.

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*
http://in.linkedin.com/in/ararunprasad

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-05