cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl_multi_fdset always returns -1 for maxfd

From: Vishakha Vaidya <vvaidya_at_adobe.com>
Date: Wed, 12 Nov 2014 08:59:48 +0000

> -----Original Message-----
> From: curl-library [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
> Sent: Wednesday, November 12, 2014 3:15 AM
> To: libcurl development
> Subject: Re: curl_multi_fdset always returns -1 for maxfd
>
> On Tue, 11 Nov 2014, Vishakha Vaidya wrote:
>
> > /* set options */
>
> Maybe consider CURLOPT_VERBOSE too during debugging to see what's happening?
>
> > Maxfd in curl_multi_fdset always returns -1 and the do while loop never exits.
>
> That sounds very strange. Does the curl command line took work for you? What operating system are you using?
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

CURLOPT_VERBOSE gave the error "hostname was not found in DNS cache", I changed the url to have ip address and it worked.
Why would a hostname not work when I can connect to the hostname using curl.

Thanks,
Vishakha

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-12