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 19:46:36 +0200 (CEST)

On Wed, 11 May 2011, Eoin ó Fearghail wrote:

(Please don't top-post)

> 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]

The key being that the logic you read only executes if select() returns -1 and
errno is EINTR, which really is not the usual code path.

-- 
  / 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