From fef3b3689492dea63693c964bcdbec9f5137eb5e Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 21 Apr 2008 07:09:17 +0000 Subject: * Optimised using statements and namespace references across entire project (this took a while to run). --- OpenSim/Framework/Servers/BaseHttpServer.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'OpenSim/Framework/Servers/BaseHttpServer.cs') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 00c81c8..7c268ed 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -30,18 +30,20 @@ using System.Collections; using System.Collections.Generic; using System.IO; using System.Net; +using System.Net.Sockets; +using System.Reflection; using System.Text; using System.Threading; using System.Xml; -using Nwc.XmlRpc; using libsecondlife.StructuredData; -using OpenSim.Framework.Console; +using log4net; +using Nwc.XmlRpc; namespace OpenSim.Framework.Servers { public class BaseHttpServer { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Thread m_workerThread; protected HttpListener m_httpListener; @@ -199,7 +201,7 @@ namespace OpenSim.Framework.Servers } } } - catch (System.Net.Sockets.SocketException e) + catch (SocketException e) { // At least on linux, it appears that if the client makes a request without requiring the response, // an unconnected socket exception is thrown when we close the response output stream. There's no @@ -346,7 +348,7 @@ namespace OpenSim.Framework.Servers { response.OutputStream.Close(); } - catch (System.Net.Sockets.SocketException) + catch (SocketException) { // This has to be here to prevent a Linux/Mono crash } @@ -602,7 +604,7 @@ namespace OpenSim.Framework.Servers m_workerThread.Name = "HttpThread"; m_workerThread.IsBackground = true; m_workerThread.Start(); - OpenSim.Framework.ThreadTracker.Add(m_workerThread); + ThreadTracker.Add(m_workerThread); } private void StartHTTP() -- cgit v1.1