mirror of
https://github.com/opensim/opensim.git
synced 2026-05-16 03:36:04 +08:00
add soem try/catch (and yes..yes right on last commit should hed been write...
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user