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.DefaultRequestHeaders.Add("Accept", "application/json,image/*");
client.Timeout = TimeSpan.FromSeconds(15);
client.Timeout = TimeSpan.FromSeconds(30);
_httpClients.TryAdd(host, client);
}

@ -37,7 +37,7 @@ namespace MediaBrowser.Controller.Providers.Movies
/// <summary>
/// The movie db
/// </summary>
internal readonly SemaphoreSlim MovieDbResourcePool = new SemaphoreSlim(5, 5);
internal readonly SemaphoreSlim MovieDbResourcePool = new SemaphoreSlim(4, 4);
internal static MovieDbProvider Current { get; private set; }

Loading…
Cancel
Save