cURL / Mailing Lists / curl-library / Single Mail


RE: curl_multi_fdset always returns -1 for maxfd

From: Daniel Stenberg <>
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@");

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.

List admin:
Received on 2014-11-12