Merge pull request #10357 from herby2212/kill-inactive-streams-v2

Add auto close of an inactive session after X minutes
This commit is contained in:
Claus Vium
2023-10-27 09:47:43 +02:00
committed by GitHub
3 changed files with 93 additions and 5 deletions

View File

@@ -158,6 +158,13 @@ public class ServerConfiguration : BaseApplicationConfiguration
/// <value>The remaining time in minutes.</value>
public int MaxAudiobookResume { get; set; } = 5;
/// <summary>
/// Gets or sets the threshold in minutes after a inactive session gets closed automatically.
/// If set to 0 the check for inactive sessions gets disabled.
/// </summary>
/// <value>The close inactive session threshold in minutes. 0 to disable.</value>
public int InactiveSessionThreshold { get; set; } = 10;
/// <summary>
/// Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed
/// Some delay is necessary with some items because their creation is not atomic. It involves the creation of several