* HttpServer fix for when a handler throws an exception but has already closed the response connection

* UUID.TryParse() on a null or empty string will now return false

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2275 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-10-07 20:07:24 +00:00
parent 419f4485a7
commit 0169177c99
2 changed files with 19 additions and 3 deletions

View File

@@ -157,11 +157,21 @@ namespace OpenMetaverse.Capabilities
}
catch (Exception e)
{
context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
context.Response.StatusDescription = e.ToString();
try
{
context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
context.Response.StatusDescription = e.ToString();
}
catch (Exception)
{
Logger.Log(e.ToString(), Helpers.LogLevel.Error);
}
}
finally
{
context.Response.Close();
}
context.Response.Close();
return;
}
}