cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl_multi_fdset always returns -1 for maxfd

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 12 Nov 2014 12:22:55 +0100 (CET)

On Wed, 12 Nov 2014, Vishakha Vaidya wrote:

> curl_easy_setopt(http_handle, CURLOPT_URL, "ftp://b3_15536782:tester@ ftp.byethost3.com/htdocs/index2.html");

Interesting. Do you actually have that space in the URL in your real program?

If I remove that space the test program runs fine on my Linux machine.

With that space left in there, libcurl actually tries to resolve the host name
with a leading space in the host name and with c-ares it gets the wrong(!) IP
address back and then it never succeeds in connecting to the host.

I'm not entirely sure this is what you see though, my stock resolver tests
don't resolve such a host name.

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