diff options
author | Justin Clark-Casey (justincc) | 2013-01-19 02:04:36 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-19 02:04:36 +0000 |
commit | 3eee991935393feeee753ced28c794f12367f19d (patch) | |
tree | 363cf8492b8c1ea7fc9e9b9ec41756895538cabc /OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |
parent | New constants for llGetObjectDetails (diff) | |
download | opensim-SC-3eee991935393feeee753ced28c794f12367f19d.zip opensim-SC-3eee991935393feeee753ced28c794f12367f19d.tar.gz opensim-SC-3eee991935393feeee753ced28c794f12367f19d.tar.bz2 opensim-SC-3eee991935393feeee753ced28c794f12367f19d.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 'OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 85b19c0..251a8ad 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -1731,6 +1731,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
1731 | 1731 | ||
1732 | // Long Poll Service Manager with 3 worker threads a 25 second timeout for no events | 1732 | // Long Poll Service Manager with 3 worker threads a 25 second timeout for no events |
1733 | m_PollServiceManager = new PollServiceRequestManager(this, 3, 25000); | 1733 | m_PollServiceManager = new PollServiceRequestManager(this, 3, 25000); |
1734 | m_PollServiceManager.Start(); | ||
1734 | HTTPDRunning = true; | 1735 | HTTPDRunning = true; |
1735 | 1736 | ||
1736 | //HttpListenerContext context; | 1737 | //HttpListenerContext context; |
@@ -1781,6 +1782,8 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
1781 | HTTPDRunning = false; | 1782 | HTTPDRunning = false; |
1782 | try | 1783 | try |
1783 | { | 1784 | { |
1785 | m_PollServiceManager.Stop(); | ||
1786 | |||
1784 | m_httpListener2.ExceptionThrown -= httpServerException; | 1787 | m_httpListener2.ExceptionThrown -= httpServerException; |
1785 | //m_httpListener2.DisconnectHandler = null; | 1788 | //m_httpListener2.DisconnectHandler = null; |
1786 | 1789 | ||