cURL / Mailing Lists / curl-library / Single Mail


Re: Changed behaviour in curl-7.20.1 ?

From: Daniel Stenberg <>
Date: Thu, 22 Apr 2010 14:12:59 +0200 (CEST)

On Thu, 22 Apr 2010, Cosmin Luță wrote:

> Can anyone tell me why with the new library the returned error code is
> "Couldn't connect to server" (which seems wrong to me imo)? Is this expected
> behaviour?

Your callback returns error as soon as possible, and that as soon as possible
was made slightly sooner in 7.20.1 since we made the callback also get called
during the name resolve and connect.

So, when you return that early you cancel the connecting and then it isn't
crystal clear what the proper return code should be from libcurl!


List admin:
Received on 2010-04-22