Make sure that we catch and display any exceptions that get right to the top of our incoming http request handling stack
parent
00365fff02
commit
87e9062862
|
@ -252,6 +252,8 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
}
|
||||
|
||||
private void OnRequest(object source, RequestEventArgs args)
|
||||
{
|
||||
try
|
||||
{
|
||||
IHttpClientContext context = (IHttpClientContext)source;
|
||||
IHttpRequest request = args.Request;
|
||||
|
@ -306,7 +308,11 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
{
|
||||
OnHandleRequestIOThread(context, request);
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.ErrorFormat("[BASE HTTP SERVER]: OnRequest() failed with {0} {1}", e.Message, e.StackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnHandleRequestIOThread(IHttpClientContext context, IHttpRequest request)
|
||||
|
|
Loading…
Reference in New Issue