add soem try/catch (and yes..yes right on last commit should hed been write...

master
UbitUmarov 2020-04-27 16:40:54 +01:00
parent 0518b397a3
commit fa844d7e6e
2 changed files with 25 additions and 8 deletions

View File

@ -117,10 +117,18 @@ namespace OpenSim.Framework.Servers.HttpServer
return;
}
}
if(m_processRequest != null)
m_processRequest(httpRequest, httpResponse, args);
else
ProcessRequest(httpRequest, httpResponse, args);
try
{
if(m_processRequest != null)
m_processRequest(httpRequest, httpResponse, args);
else
ProcessRequest(httpRequest, httpResponse, args);
}
catch
{
httpResponse.StatusCode = (int)HttpStatusCode.InternalServerError;
}
RequestsHandled++;
}

View File

@ -88,10 +88,19 @@ namespace OpenSim.Framework.Servers.HttpServer
return;
}
}
if(m_processRequest != null)
m_processRequest(httpRequest, httpResponse);
else
ProcessRequest(httpRequest, httpResponse);
try
{
if (m_processRequest != null)
m_processRequest(httpRequest, httpResponse);
else
ProcessRequest(httpRequest, httpResponse);
}
catch
{
httpResponse.StatusCode = (int)HttpStatusCode.InternalServerError;
}
RequestsHandled++;
}