add soem try/catch (and yes..yes right on last commit should hed been write...
parent
0518b397a3
commit
fa844d7e6e
|
@ -117,10 +117,18 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
if(m_processRequest != null)
|
if(m_processRequest != null)
|
||||||
m_processRequest(httpRequest, httpResponse, args);
|
m_processRequest(httpRequest, httpResponse, args);
|
||||||
else
|
else
|
||||||
ProcessRequest(httpRequest, httpResponse, args);
|
ProcessRequest(httpRequest, httpResponse, args);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
httpResponse.StatusCode = (int)HttpStatusCode.InternalServerError;
|
||||||
|
}
|
||||||
|
|
||||||
RequestsHandled++;
|
RequestsHandled++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,10 +88,19 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if (m_processRequest != null)
|
if (m_processRequest != null)
|
||||||
m_processRequest(httpRequest, httpResponse);
|
m_processRequest(httpRequest, httpResponse);
|
||||||
else
|
else
|
||||||
ProcessRequest(httpRequest, httpResponse);
|
ProcessRequest(httpRequest, httpResponse);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
httpResponse.StatusCode = (int)HttpStatusCode.InternalServerError;
|
||||||
|
}
|
||||||
|
|
||||||
RequestsHandled++;
|
RequestsHandled++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue