optimize ratings by caching

This commit is contained in:
Luke Pulverenti
2013-06-10 22:34:55 -04:00
parent c61ebf2b53
commit 2b4111d4fd
3 changed files with 77 additions and 33 deletions

View File

@@ -121,7 +121,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
if ((DateTime.UtcNow - client.LastTimeout).TotalSeconds < 30)
{
throw new HttpException(string.Format("Connection to {0} timed out", options.Url)) { IsTimedOut = true };
throw new HttpException(string.Format("Cancelling connection to {0} due to a previous timeout.", options.Url)) { IsTimedOut = true };
}
using (var message = GetHttpRequestMessage(options))