> > I use curl to retrieve a video-stream of semi-infinite length.
> > Now sometimes if the camera crashes, the video stream stops.
> > I would like curl to timeout then.
> > Is this possible?
> 
> I think this is answered in the FAQ here:
> 
>   https://curl.haxx.se/docs/faq.html#I_want_a_different_time_out
> 
> > From the manual I understood that CURLOPT_TIMEOUT_MS is for the whole
> > session. I need a t/o for a single read.
> 
> libcurl doesn't expose the concept of individual reads so I don't understand
> how that would work. It even uses non-blocking sockets internally so it
> actually never really times out on a per-read level.

Hmmm and what about via:

curl_easy_setopt(ch, CURLOPT_XFERINFOFUNCTION, ...);

?
Is there some way to see at what timestamp the last read succeeded?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to