diff options
author | Justin Clarke Casey | 2008-05-14 23:09:17 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-14 23:09:17 +0000 |
commit | e246d6e51588d75230800f4c36ee98867e25df56 (patch) | |
tree | f00455eaffdba1ed84287b6b49a3314cdb3053df /OpenSim/Region | |
parent | * Minor: Fussy little wording change on inventory service failure (diff) | |
download | opensim-SC-e246d6e51588d75230800f4c36ee98867e25df56.zip opensim-SC-e246d6e51588d75230800f4c36ee98867e25df56.tar.gz opensim-SC-e246d6e51588d75230800f4c36ee98867e25df56.tar.bz2 opensim-SC-e246d6e51588d75230800f4c36ee98867e25df56.tar.xz |
* 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
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs | 6 |
1 files changed, 4 insertions, 2 deletions
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; | |||
31 | using log4net; | 31 | using log4net; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Communications.Limit; | 33 | using OpenSim.Framework.Communications.Limit; |
34 | using OpenSim.Framework.Statistics; | ||
34 | using OpenSim.Region.Environment.Interfaces; | 35 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Scenes; | 36 | using OpenSim.Region.Environment.Scenes; |
36 | 37 | ||
@@ -125,10 +126,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
125 | { | 126 | { |
126 | if (missingTextureLimitStrategy.IsFirstRefusal(e.RequestedAssetID)) | 127 | if (missingTextureLimitStrategy.IsFirstRefusal(e.RequestedAssetID)) |
127 | { | 128 | { |
129 | if (StatsManager.SimExtraStats != null) | ||
130 | StatsManager.SimExtraStats.AddBlockedMissingTextureRequest(); | ||
131 | |||
128 | // Commenting out this message for now as it causes too much noise with other | 132 | // Commenting out this message for now as it causes too much noise with other |
129 | // debug messages. | 133 | // debug messages. |
130 | // TODO: possibly record this as a statistic in the future | ||
131 | // | ||
132 | // m_log.DebugFormat( | 134 | // m_log.DebugFormat( |
133 | // "[USER TEXTURE DOWNLOAD SERVICE]: Dropping requests for notified missing texture {0} for client {1} since we have received more than {2} requests", | 135 | // "[USER TEXTURE DOWNLOAD SERVICE]: Dropping requests for notified missing texture {0} for client {1} since we have received more than {2} requests", |
134 | // e.RequestedAssetID, m_client.AgentId, MAX_ALLOWED_TEXTURE_REQUESTS); | 136 | // e.RequestedAssetID, m_client.AgentId, MAX_ALLOWED_TEXTURE_REQUESTS); |