curl-library
Re: Changed behaviour in curl-7.20.1 ?
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!
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-22