mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-11 09:13:54 -04:00
try to avoid timeouts by increasing our default, and lower movie db concurrency
This commit is contained in:
parent
d2401579da
commit
680200864f
@ -83,7 +83,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
|
|||||||
|
|
||||||
client = new HttpClient(handler);
|
client = new HttpClient(handler);
|
||||||
client.DefaultRequestHeaders.Add("Accept", "application/json,image/*");
|
client.DefaultRequestHeaders.Add("Accept", "application/json,image/*");
|
||||||
client.Timeout = TimeSpan.FromSeconds(15);
|
client.Timeout = TimeSpan.FromSeconds(30);
|
||||||
_httpClients.TryAdd(host, client);
|
_httpClients.TryAdd(host, client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ namespace MediaBrowser.Controller.Providers.Movies
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The movie db
|
/// The movie db
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal readonly SemaphoreSlim MovieDbResourcePool = new SemaphoreSlim(5, 5);
|
internal readonly SemaphoreSlim MovieDbResourcePool = new SemaphoreSlim(4, 4);
|
||||||
|
|
||||||
internal static MovieDbProvider Current { get; private set; }
|
internal static MovieDbProvider Current { get; private set; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user