From 6d774339d9c51c1635e96cd92f57a8bc13021e5f Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Fri, 29 Feb 2008 10:51:40 +0000 Subject: More compiler warning cleanup. Removed verbose flag, since it doesn't do anything any more. --- OpenSim/Framework/Servers/BaseHttpServer.cs | 20 +++++++------------- OpenSim/Region/Application/Application.cs | 1 - OpenSim/Region/Application/OpenSimMain.cs | 5 ----- .../Environment/Modules/AssetDownloadModule.cs | 8 +++----- bin/OpenSim.ini.example | 5 +---- 5 files changed, 11 insertions(+), 28 deletions(-) diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index e61cc80..a61c177 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ + using System; using System.Collections; using System.Collections.Generic; @@ -121,7 +122,6 @@ namespace OpenSim.Framework.Servers HttpListenerRequest request = context.Request; HttpListenerResponse response = context.Response; - response.KeepAlive = false; response.SendChunked = false; @@ -160,7 +160,7 @@ namespace OpenSim.Framework.Servers response.OutputStream.Write(buffer, 0, buffer.Length); response.OutputStream.Close(); } - catch (HttpListenerException e) + catch (HttpListenerException) { m_log.InfoFormat("[BASEHTTPSERVER] Http request abnormally terminated."); } @@ -263,9 +263,8 @@ namespace OpenSim.Framework.Servers { xmlRprcRequest = (XmlRpcRequest) (new XmlRpcRequestDeserializer()).Deserialize(requestBody); } - catch (XmlException e) + catch (XmlException) { - } if (xmlRprcRequest != null) @@ -407,8 +406,6 @@ namespace OpenSim.Framework.Servers reader.Close(); requestStream.Close(); - string responseString = String.Empty; - Hashtable keysvals = new Hashtable(); Hashtable headervals = new Hashtable(); string host = String.Empty; @@ -416,11 +413,9 @@ namespace OpenSim.Framework.Servers string[] querystringkeys = request.QueryString.AllKeys; string[] rHeaders = request.Headers.AllKeys; - foreach (string queryname in querystringkeys) { keysvals.Add(queryname, request.QueryString[queryname]); - } foreach (string headername in rHeaders) @@ -447,7 +442,6 @@ namespace OpenSim.Framework.Servers DoHTTPGruntWork(responsedata,response); //SendHTML500(response); - } else { @@ -484,6 +478,7 @@ namespace OpenSim.Framework.Servers response.SendChunked = false; response.ContentLength64 = buffer.Length; response.ContentEncoding = Encoding.UTF8; + try { response.OutputStream.Write(buffer, 0, buffer.Length); @@ -496,9 +491,8 @@ namespace OpenSim.Framework.Servers { response.OutputStream.Close(); } - - } + public void SendHTML404(HttpListenerResponse response, string host) { // I know this statuscode is dumb, but the client doesn't respond to 404s and 500s @@ -511,6 +505,7 @@ namespace OpenSim.Framework.Servers response.SendChunked = false; response.ContentLength64 = buffer.Length; response.ContentEncoding = Encoding.UTF8; + try { response.OutputStream.Write(buffer, 0, buffer.Length); @@ -524,6 +519,7 @@ namespace OpenSim.Framework.Servers response.OutputStream.Close(); } } + public void SendHTML500(HttpListenerResponse response) { // I know this statuscode is dumb, but the client doesn't respond to 404s and 500s @@ -592,7 +588,6 @@ namespace OpenSim.Framework.Servers } } - public void RemoveStreamHandler(string httpMethod, string path) { m_streamHandlers.Remove(GetHandlerKey(httpMethod, path)); @@ -637,6 +632,5 @@ namespace OpenSim.Framework.Servers { return "
The server you requested is overun by knomes! Find hippos quick!
"; } - } } diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index 0e2608a..6faca1b 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -68,7 +68,6 @@ namespace OpenSim configSource.AddSwitch("Startup", "inifile"); configSource.AddSwitch("Startup", "gridmode"); configSource.AddSwitch("Startup", "physics"); - configSource.AddSwitch("Startup", "verbose"); configSource.AddSwitch("Startup", "useexecutepath"); configSource.AddConfig("StandAlone"); diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 6e89143..bdefd0f 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -78,7 +78,6 @@ namespace OpenSim protected List