From ebf38cdd8eab72bc8c724373352b9ae884ab2ee5 Mon Sep 17 00:00:00 2001 From: Tonya Souther Date: Tue, 26 Apr 2011 12:12:21 -0500 Subject: [PATCH] Add the ability to turn off UDP fallback for HTTP texture fetch. From Ansariel Hiller. --- indra/newview/app_settings/settings.xml | 2 +- indra/newview/lltexturefetch.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 7e7a1a004f..c9de573674 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13577,7 +13577,7 @@ Change of this parameter will affect the layout of buttons in notification toast ImagePipelineHTTPMaxFailCountFallback Comment - Maximum failures during HTTP GET texture fetch per region before fallback to UDP fetch occurs. + Maximum failures during HTTP GET texture fetch per region before fallback to UDP fetch occurs. Set to 0 to disable automatic fallback. Persist 1 Type diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index a0e24a2ccd..46b24f0dcb 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -2856,7 +2856,8 @@ void LLTextureFetch::setMaxHttpFailCountBeforeFallback(U32 maxFailCount) bool LLTextureFetch::isHttpFailLimitReached() { - return mTotalHttpFailCount >= mMaxHttpFailCountBeforeFallback; + return (mMaxHttpFailCountBeforeFallback > 0) && + (mTotalHttpFailCount >= mMaxHttpFailCountBeforeFallback); } //////////////////////////////////////////////////////////////////////////////