mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
please DIE! PLEASE??
This commit is contained in:
@@ -181,17 +181,20 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
{
|
||||
m_running = false;
|
||||
|
||||
Thread.Sleep(1000); // let the world move
|
||||
Thread.Sleep(100); // let the world move
|
||||
|
||||
foreach (Thread t in m_workerThreads)
|
||||
Watchdog.AbortThread(t.ManagedThreadId);
|
||||
|
||||
m_threadPool.Shutdown();
|
||||
|
||||
// any entry in m_bycontext should have a active request on the other queues
|
||||
// so just delete contents to easy GC
|
||||
foreach (Queue<PollServiceHttpRequest> qu in m_bycontext.Values)
|
||||
qu.Clear();
|
||||
m_bycontext.Clear();
|
||||
|
||||
/*
|
||||
try
|
||||
{
|
||||
foreach (PollServiceHttpRequest req in m_retryRequests)
|
||||
@@ -204,8 +207,9 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
}
|
||||
|
||||
PollServiceHttpRequest wreq;
|
||||
*/
|
||||
m_retryRequests.Clear();
|
||||
|
||||
/*
|
||||
while (m_requests.Count() > 0)
|
||||
{
|
||||
try
|
||||
@@ -218,7 +222,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
m_requests.Clear();
|
||||
}
|
||||
|
||||
@@ -229,7 +233,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
while (m_running)
|
||||
{
|
||||
PollServiceHttpRequest req = m_requests.Dequeue(5000);
|
||||
|
||||
Watchdog.UpdateThread();
|
||||
if (req != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user