* Tweak my previously mentioned nasty hack so it's a little less nasty

0.6.1-post-fixes
Teravus Ovares 2008-12-18 13:17:54 +00:00
parent 56f1b03cd0
commit a66657f155
1 changed files with 8 additions and 6 deletions

View File

@ -1406,12 +1406,7 @@ namespace OpenSim.Framework.Servers
{ {
case SocketError.NotSocket: case SocketError.NotSocket:
NotSocketErrors++; NotSocketErrors++;
if (HTTPDRunning)// && NotSocketErrors > 5)
{
Stop();
StartHTTP();
m_log.Warn("[HTTPSERVER]: Died. Trying to kick.....");
}
break; break;
} }
} }
@ -1419,6 +1414,13 @@ namespace OpenSim.Framework.Servers
public void httpServerException(object source, Exception exception) public void httpServerException(object source, Exception exception)
{ {
m_log.ErrorFormat("[HTTPSERVER]: {0} had an exception {1}", source.ToString(), exception.ToString()); 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() public void Stop()