From e246d6e51588d75230800f4c36ee98867e25df56 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 14 May 2008 23:09:17 +0000 Subject: * Start recording as a statistic the number of times we start blocking repetitive client requests for the same missing texture * This is to maintain some visibility on the problem, since I removed the intentionally irritating log messages for this --- .../Modules/Agent/TextureDownload/UserTextureDownloadService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs index 12ee278..d4fa39f 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs @@ -31,6 +31,7 @@ using libsecondlife; using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Limit; +using OpenSim.Framework.Statistics; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -125,10 +126,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload { if (missingTextureLimitStrategy.IsFirstRefusal(e.RequestedAssetID)) { + if (StatsManager.SimExtraStats != null) + StatsManager.SimExtraStats.AddBlockedMissingTextureRequest(); + // Commenting out this message for now as it causes too much noise with other // debug messages. - // TODO: possibly record this as a statistic in the future - // // m_log.DebugFormat( // "[USER TEXTURE DOWNLOAD SERVICE]: Dropping requests for notified missing texture {0} for client {1} since we have received more than {2} requests", // e.RequestedAssetID, m_client.AgentId, MAX_ALLOWED_TEXTURE_REQUESTS); -- cgit v1.1