Allow changing the tracker mode dynamically at runtime #499
Closed
josecelano
started this conversation in
Feature requests
Replies: 1 comment
-
I'm not going to include this feature in the roadmap because it hasn't received any feedback. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Relates to: #488
Recently I was working on this issue:
I assumed that the Tracker mode can't be changed at runtime. Currently, the tracker mode can only be changed when the services are deployed.
Changing the tracker mode when the services are deployed
It'd be nice to allow changing the tracker mode at runtime without restarting the Index.
Changing the tracker mode dynamically at runtime
mode
option is removed from the tracker configuration in the index.TrackeMode struct:
Index config file:
For both whitelisted modes (
Whitelisted
,Whitelisted
) there is no problem because the Index always whitelist the torrent when a new torrent is uploaded regardless of the tracker mode. And it's removed from the whitelist when the torrent is deleted.Changing from private modes (
Private
andPrivateWhitelisted
) to public modes (Public
andWhitelisted
) is not a problem. If the user downloads a torrent with a tracker key and the tracker is public, the tracker just will ignore the key.The problem is when the Tracker switches from public (open) to private (close) modes. In that case, some downloaded torrents may not work if they are downloaded before the Index detects that the tracker configuration has changed.
I do not know how useful would be this feature. I guess most Index steak to one mode. And even if the mode changes I don't think that would be very often.
What do you think @da2ce7 @WarmBeer?
Maybe It could make sense if we allow more than one associated tracker or tracker can be associated dinamically.
cc @torrust/torrustaceans
Beta Was this translation helpful? Give feedback.
All reactions