catalinii / minisatip

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

HTTP client timeout #930

Closed lars18th closed 2 years ago

lars18th commented 2 years ago

Hi @catalinii ,

I discovered this use case: Some HTTP client connects to minisatip, and minisatip doesn't have signal from the requested stream (the adapter source is the satipc module). However, the client never closes the socket. And in this case the socket continues opened forever.

So, I feel it will interesting to have a no-action-timeout parameter for HTTP sessions (almost, but perhaps for RTSP as well). This parameter indicates the time to close the session from the SERVER side.

What you think?

catalinii commented 2 years ago

Hey @lars18th ,

WhileI understand that there is benefit to such implemention I am generally against going against standard definition as this can create bugs and hard to debug issues.

lars18th commented 2 years ago

OK. This has only a suggestion.