diff options
author | Adam Frisby | 2008-11-08 20:52:48 +0000 |
---|---|---|
committer | Adam Frisby | 2008-11-08 20:52:48 +0000 |
commit | fb2a1a6b7cc65352644921bc7c7b7745ca7d2560 (patch) | |
tree | 40de926d545c113c8bb8af2c992b15506277c4d8 /OpenSim/Framework | |
parent | * "Fixed" a NRE with the new script engine Tedd committed (diff) | |
download | opensim-SC-fb2a1a6b7cc65352644921bc7c7b7745ca7d2560.zip opensim-SC-fb2a1a6b7cc65352644921bc7c7b7745ca7d2560.tar.gz opensim-SC-fb2a1a6b7cc65352644921bc7c7b7745ca7d2560.tar.bz2 opensim-SC-fb2a1a6b7cc65352644921bc7c7b7745ca7d2560.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/BlockingQueue.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
111 | return m_queue.ToArray(); | 111 | return m_queue.ToArray(); |
112 | } | 112 | } |
113 | } | 113 | } |
114 | |||
115 | public void Clear() | ||
116 | { | ||
117 | lock(m_queueSync) | ||
118 | { | ||
119 | m_pqueue.Clear(); | ||
120 | m_queue.Clear(); | ||
121 | } | ||
122 | } | ||
114 | } | 123 | } |
115 | } | 124 | } |