-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle occupied remote SAT>IP server #1190
base: master
Are you sure you want to change the base?
Conversation
Within the satipc module, when a remote SAT>IP server sends a 404 "Not Found" response instead of retrying the Request it stays quiet.
This fixes #1118 |
Handle the 404 (from minisatip) and 503 (No-More: frontends) equally.
Hi, I've updated the patch to be more generic. Instead of retry forever in cases of 454, 503 or 405 (and now 404 from minisatip as well) the adapter goes to the inactive state because the request can't be served. Pending: How to change to other free adapters. |
Why not returning 503 (on the rtsp code path) when there are no adapters? |
Hi @catalinii ,
|
Hi @catalinii , I need you help to implement the
I feel this has sense and it's easy to understand. However, to implement I don't know something: the current Any idea to set another timer inside the |
Hi, why not adding a new structure member with this specific name (or rename last_setup). Also do u have some logs on what happens ? |
My idea is to reuse
Thank you. That's the point that I need. 😉
With the current implementation of the With this architecture what the current code is doing is this (checked with logs): when the 404/503 response is received the local state is changed to send a new SETUP/PLAY request and retry the last command. This is more or less useful if you not overload the remote SAT>IP server. Because when the tuner will be free the request will be served. But for the problem of the efficiency this PR is necessary. Without it an infinite loop appears... until the client closes the connection. And this infinite loop could generate troubles in the network and/or the remote server. So, the easy solution is to almost "disable any retry" and not serve the request. But my further proposal is to leave the user the option to fine-tune this behaviour. With the parameter But in any case, before the implementation of this new parameter I recommend to merge this PR. Without it it would be very easy to overload the server. So please merge it now. And I'll provide another one later witht he |
Within the satipc module, when a remote SAT>IP server sends a 404 "Not Found" response instead of retrying the Request it stays quiet.