cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Timeout of 0 in url.c: SocketIsDead()

From: Eoin ˇ Fearghail <eoin.o.fearghail_at_gmail.com>
Date: Wed, 11 May 2011 18:10:42 +0100

Yes, sorry my question was
"why is no timeout set ?"

On Wed, May 11, 2011 at 5:39 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Wed, 11 May 2011, Eoin ˇ Fearghail wrote:
>
>> https://github.com/bagder/curl/blob/master/lib/url.c#L2677
>>
>> Is there a reason that a timeout, [even a large] one is not
>> passed into the invocation of Curl_socket_ready ?
>>
>> ásval = Curl_socket_ready(sock, CURL_SOCKET_BAD, 0);
>>
>> It seems unlikely that you'd want to wait forever!
>
> That 0 is treated as no timeout.
>
> --
>
> á/ daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: áhttp://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-11