try to avoid timeouts by increasing our default, and lower movie db concurrency

pull/702/head
Luke Pulverenti 12 years ago
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…
Cancel
Save