mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
* Start recording abnormal client thread terminations
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user