From fb2a1a6b7cc65352644921bc7c7b7745ca7d2560 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 8 Nov 2008 20:52:48 +0000 Subject: * Fixed a major memory leak in packet processing - PacketQueue.Close is never called, causing the PacketQueue for dead clients to be preserved (including it's contents). * This patch is highly experimental and may cause clients to not be able to connect, if this is the case, it will be rolled back in approximately 5 minutes. --- OpenSim/Framework/BlockingQueue.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/BlockingQueue.cs b/OpenSim/Framework/BlockingQueue.cs index 6fbf88f..0329e0f 100644 --- a/OpenSim/Framework/BlockingQueue.cs +++ b/OpenSim/Framework/BlockingQueue.cs @@ -111,5 +111,14 @@ namespace OpenSim.Framework return m_queue.ToArray(); } } + + public void Clear() + { + lock(m_queueSync) + { + m_pqueue.Clear(); + m_queue.Clear(); + } + } } } -- cgit v1.1