From 6e2f3bd3fb88f41803376428bbffdd6aa67940c0 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 4 Jun 2008 16:30:44 +0000 Subject: * Start recording abnormal client thread terminations --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 230fe3c..af23660 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -39,6 +39,7 @@ using libsecondlife.Packets; using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; +using OpenSim.Framework.Statistics; using OpenSim.Region.ClientStack.LindenUDP; using OpenSim.Region.Environment.Scenes; using Timer=System.Timers.Timer; @@ -729,6 +730,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP if (e is ThreadAbortException) throw e; + if (StatsManager.SimExtraStats != null) + StatsManager.SimExtraStats.AddAbnormalClientThreadTermination(); + // Don't let a failure in an individual client thread crash the whole sim. // FIXME: could do more sophisticated cleanup since leaving client resources around may // cause instability for the region server over time. -- cgit v1.1