curl-library
Re: why these error messages?
Date: Mon, 19 Jul 2004 20:53:29 +0200 (CEST)
On Sun, 18 Jul 2004, Mohun Biswas wrote:
> When a URL describes a port with nothing listening on it, the error message
> returned via libcurl is non-obvious:
>
> % curl 'http://mailhost:8000/some/url'
> curl: (7) Connect failed; Operation now in progress
>
> What operation?
errno is EINPROGRESS I believe.
> And nothing's in progress at this point; it's failed and is
> not retrying. BTW, the behavior is somewhat different for localhost:
>
> % curl 'http://localhost:8000/some/url'
> curl: (7) Failed to connect to localhost IP number 1: Connection refused
Yes, this difference is due to the different value in errno.
> This makes more sense except for the "IP number 1".
It is IP number one that fails. You can make localhost resolve to multiple
IPs, and then you might spot a difference.
That 'ip number' text is not present in the current CVS version anymore
though.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-07-19