diff options
author | Teravus Ovares (Dan Olivares) | 2009-08-26 21:05:46 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-08-26 21:05:46 -0400 |
commit | 6f077d5e5f9929f6593850dc096983dcf237e387 (patch) | |
tree | 7552e90c986191d1cc1db68241967ced6195f2e7 /OpenSim/Framework/Servers/HttpServer | |
parent | Add reference to OpenMetaverse.dll to UserServer.Modules to make MSVS happy (diff) | |
download | opensim-SC_OLD-6f077d5e5f9929f6593850dc096983dcf237e387.zip opensim-SC_OLD-6f077d5e5f9929f6593850dc096983dcf237e387.tar.gz opensim-SC_OLD-6f077d5e5f9929f6593850dc096983dcf237e387.tar.bz2 opensim-SC_OLD-6f077d5e5f9929f6593850dc096983dcf237e387.tar.xz |
* Another attempt at fixing the random spurious test error.
* This time it might be the listening socket thread from HttpServer aborting with a non blocking thread abort exception. Hopefully calling Stop() on MainServer.Instance will solve that.
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 75c9310..771ae05 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -1637,13 +1637,20 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
1637 | public void Stop() | 1637 | public void Stop() |
1638 | { | 1638 | { |
1639 | HTTPDRunning = false; | 1639 | HTTPDRunning = false; |
1640 | m_httpListener2.ExceptionThrown -= httpServerException; | 1640 | try |
1641 | //m_httpListener2.DisconnectHandler = null; | 1641 | { |
1642 | 1642 | m_httpListener2.ExceptionThrown -= httpServerException; | |
1643 | m_httpListener2.LogWriter = null; | 1643 | //m_httpListener2.DisconnectHandler = null; |
1644 | m_httpListener2.RequestReceived -= OnRequest; | ||
1645 | 1644 | ||
1646 | m_httpListener2.Stop(); | 1645 | m_httpListener2.LogWriter = null; |
1646 | m_httpListener2.RequestReceived -= OnRequest; | ||
1647 | m_httpListener2.Stop(); | ||
1648 | } | ||
1649 | catch (NullReferenceException) | ||
1650 | { | ||
1651 | m_log.Warn("[BASEHTTPSERVER]: Null Reference when stopping HttpServer."); | ||
1652 | } | ||
1653 | |||
1647 | } | 1654 | } |
1648 | 1655 | ||
1649 | public void RemoveStreamHandler(string httpMethod, string path) | 1656 | public void RemoveStreamHandler(string httpMethod, string path) |