catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
327 stars 80 forks source link

[Discussion] Tunning timeout #1009

Open lars18th opened 1 year ago

lars18th commented 1 year ago

Hi,

I want to discuss with other developers about the best approach to implement a tunning timeout. The objective is:

What I want to solve is the problem when some client (mainly HTTP, but it could be also RTSP) requests a transponder and doens't receives any stream. My idea is that after 3-4 seconds, close the connection or retune with another adapter. Take note that I'm using a central minisatip managing with the "satipc" module multiple SAT>IP servers. So, in case of some server can't tune, I want to try with another. And in any case, send an error message to the client if it's impossible to tune the request. but based on the absence of data in the stream, and not on a tunning error in the server.

Without this functionality the client is responsible to check if the data arrives to him. And I'm thinking that perhaps it could be preferable to do this check inside minisatip. What you think?