From bbfda8e19e4a66d87ba1de80083a0da1eaf9ddfb Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Tue, 1 Apr 2014 15:00:22 +0300 Subject: 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). --- OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs') diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 28324a5..7041181 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs @@ -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 { -- cgit v1.1