From f076c7193638e24936269296cecac251628bc6c0 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Mon, 24 Sep 2007 11:20:09 +0000 Subject: [PATCH] * Applied tleiades patch #435 fixing HttpBaseServer ABEND (thanx!) --- OpenSim/Framework/Servers/BaseHttpServer.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 0bd74957d4..6d432fd277 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -197,9 +197,18 @@ namespace OpenSim.Framework.Servers response.SendChunked = false; response.ContentLength64 = buffer.Length; response.ContentEncoding = Encoding.UTF8; - - response.OutputStream.Write(buffer, 0, buffer.Length); - response.OutputStream.Close(); + try + { + response.OutputStream.Write(buffer, 0, buffer.Length); + } + catch (Exception ex) + { + MainLog.Instance.Warn("HTTPD", "Error - " + ex.Message); + } + finally + { + response.OutputStream.Close(); + } } public void Start()