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:42:21 +0100

Thanks for the info.

https://github.com/bagder/curl/blob/master/lib/select.c#L292
However in the above section it will only break out of the do... while loop
if a non-zero value has been set for timeout_ms
[assuming the other logic does no trigger a break]

2011/5/11 Kamil Dudka <kdudka_at_redhat.com>:
> On Wednesday 11 May 2011 19:10:42 Eoin ó Fearghail wrote:
>> Yes, sorry my question was
>> "why is no timeout set ?"
>
> I do not think you understand.  Zero means do not wait.  See e.g. how poll()
> works [1]: "If the value of timeout is 0, poll() shall return immediately."
>
> Kamil
>
> [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html
>

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