cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to get error connection even if timeout is disabled

From: Eric Beuque <eric.beuque_at_gmail.com>
Date: Tue, 16 Apr 2013 10:42:32 +0200

On Mon, Apr 15, 2013 at 4:10 PM, Lijo Antony <lta_at_one.com> wrote:

> 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<http://curl.haxx.se/docs/faq.html#Why_doesn_t_cURL_return_an_error>
>

Thank you very much, i think i can deal with the tcp keep alive feature.

>
> -lijo
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-16