Make sure that we catch and display any exceptions that get right to the top of our incoming http request handling stack

mysql-performance
Justin Clark-Casey (justincc) 2009-12-15 16:34:27 +00:00
parent 00365fff02
commit 87e9062862
1 changed files with 52 additions and 46 deletions

View File

@ -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)