aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-21 07:09:17 +0000
committerAdam Frisby2008-04-21 07:09:17 +0000
commitfef3b3689492dea63693c964bcdbec9f5137eb5e (patch)
tree7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Framework/Servers/BaseHttpServer.cs
parent* Terrain Module code has been reformatted to comply with guidelines. (diff)
downloadopensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs14
1 files changed, 8 insertions, 6 deletions
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;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.IO; 31using System.IO;
32using System.Net; 32using System.Net;
33using System.Net.Sockets;
34using System.Reflection;
33using System.Text; 35using System.Text;
34using System.Threading; 36using System.Threading;
35using System.Xml; 37using System.Xml;
36using Nwc.XmlRpc;
37using libsecondlife.StructuredData; 38using libsecondlife.StructuredData;
38using OpenSim.Framework.Console; 39using log4net;
40using Nwc.XmlRpc;
39 41
40namespace OpenSim.Framework.Servers 42namespace OpenSim.Framework.Servers
41{ 43{
42 public class BaseHttpServer 44 public class BaseHttpServer
43 { 45 {
44 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 47
46 protected Thread m_workerThread; 48 protected Thread m_workerThread;
47 protected HttpListener m_httpListener; 49 protected HttpListener m_httpListener;
@@ -199,7 +201,7 @@ namespace OpenSim.Framework.Servers
199 } 201 }
200 } 202 }
201 } 203 }
202 catch (System.Net.Sockets.SocketException e) 204 catch (SocketException e)
203 { 205 {
204 // At least on linux, it appears that if the client makes a request without requiring the response, 206 // At least on linux, it appears that if the client makes a request without requiring the response,
205 // an unconnected socket exception is thrown when we close the response output stream. There's no 207 // an unconnected socket exception is thrown when we close the response output stream. There's no
@@ -346,7 +348,7 @@ namespace OpenSim.Framework.Servers
346 { 348 {
347 response.OutputStream.Close(); 349 response.OutputStream.Close();
348 } 350 }
349 catch (System.Net.Sockets.SocketException) 351 catch (SocketException)
350 { 352 {
351 // This has to be here to prevent a Linux/Mono crash 353 // This has to be here to prevent a Linux/Mono crash
352 } 354 }
@@ -602,7 +604,7 @@ namespace OpenSim.Framework.Servers
602 m_workerThread.Name = "HttpThread"; 604 m_workerThread.Name = "HttpThread";
603 m_workerThread.IsBackground = true; 605 m_workerThread.IsBackground = true;
604 m_workerThread.Start(); 606 m_workerThread.Start();
605 OpenSim.Framework.ThreadTracker.Add(m_workerThread); 607 ThreadTracker.Add(m_workerThread);
606 } 608 }
607 609
608 private void StartHTTP() 610 private void StartHTTP()