Fixed last-resort sending of error response (HTTP 500) when an error occurs while handling a request.

The previous code didn't actually send the response, so the caller was stuck until the timeout (100 seconds).
This commit is contained in:
Oren Hurvitz
2014-04-01 15:00:22 +03:00
parent fad0fd7f75
commit bbfda8e19e
2 changed files with 10 additions and 10 deletions

View File

@@ -492,8 +492,8 @@ namespace OpenSim.Framework.Servers.HttpServer
try
{
byte[] buffer500 = SendHTML500(response);
response.Body.Write(buffer500,0,buffer500.Length);
response.Body.Close();
response.OutputStream.Write(buffer500, 0, buffer500.Length);
response.Send();
}
catch
{
@@ -746,8 +746,8 @@ namespace OpenSim.Framework.Servers.HttpServer
try
{
byte[] buffer500 = SendHTML500(response);
response.Body.Write(buffer500, 0, buffer500.Length);
response.Body.Close();
response.OutputStream.Write(buffer500, 0, buffer500.Length);
response.Send();
}
catch
{