From a66657f155d5579546cd38487fcaad0b88394c4b Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 18 Dec 2008 13:17:54 +0000 Subject: [PATCH] * Tweak my previously mentioned nasty hack so it's a little less nasty --- OpenSim/Framework/Servers/BaseHttpServer.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 91ad3a39dc..c182dfc683 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -1406,12 +1406,7 @@ namespace OpenSim.Framework.Servers { case SocketError.NotSocket: NotSocketErrors++; - if (HTTPDRunning)// && NotSocketErrors > 5) - { - Stop(); - StartHTTP(); - m_log.Warn("[HTTPSERVER]: Died. Trying to kick....."); - } + break; } } @@ -1419,6 +1414,13 @@ namespace OpenSim.Framework.Servers public void httpServerException(object source, Exception exception) { m_log.ErrorFormat("[HTTPSERVER]: {0} had an exception {1}", source.ToString(), exception.ToString()); + if (HTTPDRunning)// && NotSocketErrors > 5) + { + Stop(); + Thread.Sleep(200); + StartHTTP(); + m_log.Warn("[HTTPSERVER]: Died. Trying to kick....."); + } } public void Stop()