mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
* Update download timeout => 100s => 300 s
This commit is contained in:
@@ -77,6 +77,8 @@ namespace Jackett.Common.Utils.Clients
|
||||
|
||||
clearanceHandlr.InnerHandler = clientHandlr;
|
||||
client = new HttpClient(clearanceHandlr);
|
||||
|
||||
SetTimeout(ClientTimeout);
|
||||
}
|
||||
|
||||
// Called everytime the ServerConfig changes
|
||||
@@ -90,6 +92,12 @@ namespace Jackett.Common.Utils.Clients
|
||||
}
|
||||
}
|
||||
|
||||
public override void SetTimeout(int seconds)
|
||||
{
|
||||
ClientTimeout = seconds;
|
||||
client.Timeout = TimeSpan.FromSeconds(ClientTimeout);
|
||||
}
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
|
Reference in New Issue
Block a user