cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 May 2011 18:39:49 +0200 (CEST)

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
Received on 2011-05-11