On Mon, Apr 15, 2013 at 4:10 PM, Lijo Antony <[email protected]> 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
