curl-library
Re: Timeout does not work using easy interface inside thread
Date: Thu, 3 Nov 2005 13:22:10 -0600 (CST)
On Fri, 4 Nov 2005, Daniel Stenberg wrote:
> On Thu, 3 Nov 2005, Allen Zhao wrote:
>
> > Now I allow simultaneous download with several threads, (still regulated
> > with a semaphore count), it turns out there will be a dead lock when some
> > slow sites are visited. It started the libcurl call, but never time-out,
> > effectively lock the semaphore.
>
> At what point does it stall? And you have a set time-out with CURLOPT_TIMEOUT?
I have time-out set no less than 60 sec, both the connect timeout and
timeout option.
The stall happens only with slow sites on curl_easy_perform(). Never
return.
Funny thing is that if I only limit one thread to run at a time, there is
no stall observed.
Best regards,
Allen Zhao
>
> > Is there any known issues along this line?
>
> No.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2005-11-05