cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 5 Aug 2012 11:41:23 +0200 (CEST)

On Sun, 5 Aug 2012, Arunprasad Rajkumar wrote:

> 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).

There's no technical reason why not. There's a slight problem to use a pipe on
Windows since it would have to be a real socket for it to work with select(),
but it could A) be made differently on different platform or B) use a UDP
socket as you mentioned.

There's just the fact that nobody has yet attempted to make an implementation
that does this.

> But using ares should avoid this right?

Yes.

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