curl-library
Re: How to get error connection even if timeout is disabled
Date: Mon, 15 Apr 2013 18:10:47 +0400
On 04/15/2013 02:21 PM, Eric Beuque wrote:
> Hi,
>
> I'm using curl to get a video stream. This video stream can send frame
> very slowly (for example one frame every 10 minutes).
> So i disabled the timeout because i don't want to receive an error if i
> don't receive any frame. Nevertheless, this lead to not receive any
> error is the connection is lost (for example, if the ethernet cable is
> unplugged), and the curl_easy_perform function doesn't abort.
>
> How can I use libcurl to handle that case, where timeout is disabled but
> error occurs on connection error.
>
http://curl.haxx.se/docs/faq.html#Why_doesn_t_cURL_return_an_error
-lijo
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-15