cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: one remaining issue before next release

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 13 Apr 2004 13:31:06 +0200 (CEST)

On Tue, 13 Apr 2004, Gisle Vanem wrote:

> > 31. Fix multi interface for windows with ares. curl_multi_fdset() returns
> > blank fdsets during name lookup which causes a following select() to
> > fail!
>
> Can't we just create a dummy (udp) socket while the resolver thread is
> active and give that to select()?

Yes we can. To make it really nice I guess we can make the code setup a
listening udp socket (or PF_LOCAL?) on a random port number on localhost and
then let the threaded resolver send a "beep" to it when its done. Then the
select()ing in the app layer will work as expected as well.

Curl_multi_ares_fdset() would need to be written to return the fd_set the app
should select on.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-13