aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-19 02:04:36 +0000
committerJustin Clark-Casey (justincc)2013-02-08 21:25:57 +0000
commit82268d715e1b1ea6562fa5fb29d43d6e0d7e2c2c (patch)
treea827eb05fa8eda4d0333bcd6be062763d486174a /OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
parentMantis 6507 keys returned by llGetAgentList incorrect for llList2Key (diff)
downloadopensim-SC_OLD-82268d715e1b1ea6562fa5fb29d43d6e0d7e2c2c.zip
opensim-SC_OLD-82268d715e1b1ea6562fa5fb29d43d6e0d7e2c2c.tar.gz
opensim-SC_OLD-82268d715e1b1ea6562fa5fb29d43d6e0d7e2c2c.tar.bz2
opensim-SC_OLD-82268d715e1b1ea6562fa5fb29d43d6e0d7e2c2c.tar.xz
Explicitly stop PollServiceRequestManager() rather than relying on its destructor.
Hopes to address occasional shutdown failures from http://opensimulator.org/mantis/view.php?id=6503
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 8a0340f..aa49343 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1623,6 +1623,7 @@ namespace OpenSim.Framework.Servers.HttpServer
1623 1623
1624 // Long Poll Service Manager with 3 worker threads a 25 second timeout for no events 1624 // Long Poll Service Manager with 3 worker threads a 25 second timeout for no events
1625 m_PollServiceManager = new PollServiceRequestManager(this, 3, 25000); 1625 m_PollServiceManager = new PollServiceRequestManager(this, 3, 25000);
1626 m_PollServiceManager.Start();
1626 HTTPDRunning = true; 1627 HTTPDRunning = true;
1627 1628
1628 //HttpListenerContext context; 1629 //HttpListenerContext context;
@@ -1673,6 +1674,8 @@ namespace OpenSim.Framework.Servers.HttpServer
1673 HTTPDRunning = false; 1674 HTTPDRunning = false;
1674 try 1675 try
1675 { 1676 {
1677 m_PollServiceManager.Stop();
1678
1676 m_httpListener2.ExceptionThrown -= httpServerException; 1679 m_httpListener2.ExceptionThrown -= httpServerException;
1677 //m_httpListener2.DisconnectHandler = null; 1680 //m_httpListener2.DisconnectHandler = null;
1678 1681