cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Query regarding CURLOPT_OPENSOCKETFUNCTION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Apr 2012 09:27:48 +0200 (CEST)

On Tue, 3 Apr 2012, Lijo Antony wrote:

>> I have observed that when opensocket_callback returns CURL_SOCKET_BAD,
>> libcurl returns CURLE_FAILED_INIT instead of CURLE_COULDNT_CONNECT. This is
>> incorrect as per the documentation at
>> http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTOPENSOCKETFUNCTION.
>> Is this a bug?
>
> Is this a bug? If yes, would you accept a patch?

Yes, I think it is a bug and yes we would accept a patch!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-03