From 680200864f2f713c718a65d0927937d5fe5230b2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 28 Mar 2013 14:47:58 -0400 Subject: [PATCH] try to avoid timeouts by increasing our default, and lower movie db concurrency --- .../HttpClientManager/HttpClientManager.cs | 2 +- MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs index cba268813..0e9696648 100644 --- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs +++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs @@ -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); } diff --git a/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs index 3eea0979c..68d6c197c 100644 --- a/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs @@ -37,7 +37,7 @@ namespace MediaBrowser.Controller.Providers.Movies /// /// The movie db /// - internal readonly SemaphoreSlim MovieDbResourcePool = new SemaphoreSlim(5, 5); + internal readonly SemaphoreSlim MovieDbResourcePool = new SemaphoreSlim(4, 4); internal static MovieDbProvider Current { get; private set; }