cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl + libevent2: Stalling if no data is received/written [timeout bug patch]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 24 Aug 2010 18:25:51 +0200 (CEST)

On Mon, 23 Aug 2010, Dirk Manske wrote:

> Duh! Looks like there's still a time-out bug with the multi interface. I've
> played again with the examples multi-single.c and hiperfifo.c, after adding
> CURLOPT_TIMEOUT both example programs detects time-out while connecting. But
> after connection only multi-single.c (using curl_multi_timeout) will detect
> a time-out, but not hiperfifo.c (using timer callback).

Right, but isn't this the results of the same problem Constantine Sapuntzakis
and I've been talking about: the fact that Curl_expire(..., 0) currently
erases all currently set timeouts?

I believe it is, so I think the fixes we're discussing are even more suitable
at least as a start and then see if things aren't solved:

http://curl.haxx.se/mail/lib-2010-08/0194.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-24