diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/BaseHTTPHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/BaseHttpServer.cs | 16 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 5 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/BaseStreamHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/BinaryStreamHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/IHttpAgentHandler.cs | 4 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/IStreamHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/OSHttpRequest.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/OSHttpResponse.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/RestDeserialiseHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/RestHTTPHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/RestSessionService.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/RestStreamHandler.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/Tests/OSHttpTests.cs | 9 |
14 files changed, 14 insertions, 33 deletions
diff --git a/OpenSim/Framework/Servers/BaseHTTPHandler.cs b/OpenSim/Framework/Servers/BaseHTTPHandler.cs index a7c3562..2aa37fb 100644 --- a/OpenSim/Framework/Servers/BaseHTTPHandler.cs +++ b/OpenSim/Framework/Servers/BaseHTTPHandler.cs | |||
@@ -25,7 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections; | 28 | using System.Collections; |
30 | 29 | ||
31 | namespace OpenSim.Framework.Servers | 30 | namespace OpenSim.Framework.Servers |
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index d69b2c0..620a7f6 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs | |||
@@ -35,12 +35,12 @@ using System.Reflection; | |||
35 | using System.Text; | 35 | using System.Text; |
36 | using System.Threading; | 36 | using System.Threading; |
37 | using System.Xml; | 37 | using System.Xml; |
38 | using OpenMetaverse.StructuredData; | 38 | using HttpServer; |
39 | using log4net; | 39 | using log4net; |
40 | using Nwc.XmlRpc; | 40 | using Nwc.XmlRpc; |
41 | using OpenMetaverse.StructuredData; | ||
41 | using CoolHTTPListener = HttpServer.HttpListener; | 42 | using CoolHTTPListener = HttpServer.HttpListener; |
42 | using IHttpClientContext = HttpServer.IHttpClientContext; | 43 | using HttpListener=System.Net.HttpListener; |
43 | using IHttpRequest = HttpServer.IHttpRequest; | ||
44 | 44 | ||
45 | namespace OpenSim.Framework.Servers | 45 | namespace OpenSim.Framework.Servers |
46 | { | 46 | { |
@@ -219,7 +219,7 @@ namespace OpenSim.Framework.Servers | |||
219 | public void OnHandleRequestIOThread(IHttpClientContext context, IHttpRequest request) | 219 | public void OnHandleRequestIOThread(IHttpClientContext context, IHttpRequest request) |
220 | { | 220 | { |
221 | OSHttpRequest req = new OSHttpRequest(context, request); | 221 | OSHttpRequest req = new OSHttpRequest(context, request); |
222 | OSHttpResponse resp = new OSHttpResponse(new HttpServer.HttpResponse(context, request)); | 222 | OSHttpResponse resp = new OSHttpResponse(new HttpResponse(context, request)); |
223 | //resp.KeepAlive = req.KeepAlive; | 223 | //resp.KeepAlive = req.KeepAlive; |
224 | //m_log.Info("[Debug BASE HTTP SERVER]: Got Request"); | 224 | //m_log.Info("[Debug BASE HTTP SERVER]: Got Request"); |
225 | //HttpServerContextObj objstate= new HttpServerContextObj(req,resp); | 225 | //HttpServerContextObj objstate= new HttpServerContextObj(req,resp); |
@@ -1373,7 +1373,7 @@ namespace OpenSim.Framework.Servers | |||
1373 | { | 1373 | { |
1374 | //m_httpListener.Prefixes.Add("http://+:" + m_port + "/"); | 1374 | //m_httpListener.Prefixes.Add("http://+:" + m_port + "/"); |
1375 | //m_httpListener.Prefixes.Add("http://10.1.1.5:" + m_port + "/"); | 1375 | //m_httpListener.Prefixes.Add("http://10.1.1.5:" + m_port + "/"); |
1376 | m_httpListener2 = new HttpServer.HttpListener(IPAddress.Any, (int)m_port); | 1376 | m_httpListener2 = new CoolHTTPListener(IPAddress.Any, (int)m_port); |
1377 | m_httpListener2.ExceptionThrown += httpServerException; | 1377 | m_httpListener2.ExceptionThrown += httpServerException; |
1378 | m_httpListener2.LogWriter = httpserverlog; | 1378 | m_httpListener2.LogWriter = httpserverlog; |
1379 | 1379 | ||
@@ -1408,7 +1408,7 @@ namespace OpenSim.Framework.Servers | |||
1408 | } | 1408 | } |
1409 | } | 1409 | } |
1410 | 1410 | ||
1411 | public void httpServerDisconnectMonitor(HttpServer.IHttpClientContext source, SocketError err) | 1411 | public void httpServerDisconnectMonitor(IHttpClientContext source, SocketError err) |
1412 | { | 1412 | { |
1413 | switch (err) | 1413 | switch (err) |
1414 | { | 1414 | { |
@@ -1564,11 +1564,11 @@ namespace OpenSim.Framework.Servers | |||
1564 | /// Relays HttpServer log messages to our own logging mechanism. | 1564 | /// Relays HttpServer log messages to our own logging mechanism. |
1565 | /// </summary> | 1565 | /// </summary> |
1566 | /// There is also a UseTraceLogs line in this file that can be uncommented for more detailed log information | 1566 | /// There is also a UseTraceLogs line in this file that can be uncommented for more detailed log information |
1567 | public class HttpServerLogWriter : HttpServer.ILogWriter | 1567 | public class HttpServerLogWriter : ILogWriter |
1568 | { | 1568 | { |
1569 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 1569 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
1570 | 1570 | ||
1571 | public void Write(object source, HttpServer.LogPrio priority, string message) | 1571 | public void Write(object source, LogPrio priority, string message) |
1572 | { | 1572 | { |
1573 | /* | 1573 | /* |
1574 | switch (priority) | 1574 | switch (priority) |
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index ff53e1a..4cbbecc 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -38,6 +38,7 @@ using log4net.Core; | |||
38 | using log4net.Repository; | 38 | using log4net.Repository; |
39 | using OpenSim.Framework.Console; | 39 | using OpenSim.Framework.Console; |
40 | using OpenSim.Framework.Statistics; | 40 | using OpenSim.Framework.Statistics; |
41 | using Timer=System.Timers.Timer; | ||
41 | 42 | ||
42 | namespace OpenSim.Framework.Servers | 43 | namespace OpenSim.Framework.Servers |
43 | { | 44 | { |
@@ -52,7 +53,7 @@ namespace OpenSim.Framework.Servers | |||
52 | /// This will control a periodic log printout of the current 'show stats' (if they are active) for this | 53 | /// This will control a periodic log printout of the current 'show stats' (if they are active) for this |
53 | /// server. | 54 | /// server. |
54 | /// </summary> | 55 | /// </summary> |
55 | private System.Timers.Timer m_periodicDiagnosticsTimer = new System.Timers.Timer(60 * 60 * 1000); | 56 | private Timer m_periodicDiagnosticsTimer = new Timer(60 * 60 * 1000); |
56 | 57 | ||
57 | protected ConsoleBase m_console; | 58 | protected ConsoleBase m_console; |
58 | 59 | ||
@@ -266,7 +267,7 @@ namespace OpenSim.Framework.Servers | |||
266 | 267 | ||
267 | // If there is no threshold set then the threshold is effectively everything. | 268 | // If there is no threshold set then the threshold is effectively everything. |
268 | Level thresholdLevel | 269 | Level thresholdLevel |
269 | = (null != consoleAppender.Threshold ? consoleAppender.Threshold : log4net.Core.Level.All); | 270 | = (null != consoleAppender.Threshold ? consoleAppender.Threshold : Level.All); |
270 | 271 | ||
271 | Notice(String.Format("Console log level is {0}", thresholdLevel)); | 272 | Notice(String.Format("Console log level is {0}", thresholdLevel)); |
272 | } | 273 | } |
diff --git a/OpenSim/Framework/Servers/BaseStreamHandler.cs b/OpenSim/Framework/Servers/BaseStreamHandler.cs index 6b0614f..771def4 100644 --- a/OpenSim/Framework/Servers/BaseStreamHandler.cs +++ b/OpenSim/Framework/Servers/BaseStreamHandler.cs | |||
@@ -26,7 +26,6 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.IO; | 28 | using System.IO; |
29 | using System.Net; | ||
30 | 29 | ||
31 | namespace OpenSim.Framework.Servers | 30 | namespace OpenSim.Framework.Servers |
32 | { | 31 | { |
diff --git a/OpenSim/Framework/Servers/BinaryStreamHandler.cs b/OpenSim/Framework/Servers/BinaryStreamHandler.cs index 26a6f10..6540798 100644 --- a/OpenSim/Framework/Servers/BinaryStreamHandler.cs +++ b/OpenSim/Framework/Servers/BinaryStreamHandler.cs | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | using System.IO; | 28 | using System.IO; |
29 | using System.Text; | 29 | using System.Text; |
30 | using System.Net; | ||
31 | 30 | ||
32 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
33 | { | 32 | { |
diff --git a/OpenSim/Framework/Servers/IHttpAgentHandler.cs b/OpenSim/Framework/Servers/IHttpAgentHandler.cs index ff3a5b9..e6ad57e 100644 --- a/OpenSim/Framework/Servers/IHttpAgentHandler.cs +++ b/OpenSim/Framework/Servers/IHttpAgentHandler.cs | |||
@@ -25,10 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections; | ||
29 | using System.IO; | ||
30 | using System.Net; | ||
31 | |||
32 | namespace OpenSim.Framework.Servers | 28 | namespace OpenSim.Framework.Servers |
33 | { | 29 | { |
34 | public interface IHttpAgentHandler | 30 | public interface IHttpAgentHandler |
diff --git a/OpenSim/Framework/Servers/IStreamHandler.cs b/OpenSim/Framework/Servers/IStreamHandler.cs index b3ce34d..76bf4d5 100644 --- a/OpenSim/Framework/Servers/IStreamHandler.cs +++ b/OpenSim/Framework/Servers/IStreamHandler.cs | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | using System.Collections; | 28 | using System.Collections; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Net; | ||
31 | 30 | ||
32 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
33 | { | 32 | { |
diff --git a/OpenSim/Framework/Servers/OSHttpRequest.cs b/OpenSim/Framework/Servers/OSHttpRequest.cs index 4c7d7ce..8e0cb38 100644 --- a/OpenSim/Framework/Servers/OSHttpRequest.cs +++ b/OpenSim/Framework/Servers/OSHttpRequest.cs | |||
@@ -29,8 +29,8 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Collections.Specialized; | 31 | using System.Collections.Specialized; |
32 | using System.Net; | ||
33 | using System.IO; | 32 | using System.IO; |
33 | using System.Net; | ||
34 | using System.Reflection; | 34 | using System.Reflection; |
35 | using System.Text; | 35 | using System.Text; |
36 | using HttpServer; | 36 | using HttpServer; |
diff --git a/OpenSim/Framework/Servers/OSHttpResponse.cs b/OpenSim/Framework/Servers/OSHttpResponse.cs index 4947156..ff02edd 100644 --- a/OpenSim/Framework/Servers/OSHttpResponse.cs +++ b/OpenSim/Framework/Servers/OSHttpResponse.cs | |||
@@ -25,8 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections; | ||
30 | using System.IO; | 28 | using System.IO; |
31 | using System.Net; | 29 | using System.Net; |
32 | using System.Text; | 30 | using System.Text; |
diff --git a/OpenSim/Framework/Servers/RestDeserialiseHandler.cs b/OpenSim/Framework/Servers/RestDeserialiseHandler.cs index 5c2dd4a..41d86e5 100644 --- a/OpenSim/Framework/Servers/RestDeserialiseHandler.cs +++ b/OpenSim/Framework/Servers/RestDeserialiseHandler.cs | |||
@@ -26,7 +26,6 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.IO; | 28 | using System.IO; |
29 | using System.Net; | ||
30 | using System.Xml; | 29 | using System.Xml; |
31 | using System.Xml.Serialization; | 30 | using System.Xml.Serialization; |
32 | 31 | ||
diff --git a/OpenSim/Framework/Servers/RestHTTPHandler.cs b/OpenSim/Framework/Servers/RestHTTPHandler.cs index 2974c56..5722885 100644 --- a/OpenSim/Framework/Servers/RestHTTPHandler.cs +++ b/OpenSim/Framework/Servers/RestHTTPHandler.cs | |||
@@ -25,7 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections; | 28 | using System.Collections; |
30 | 29 | ||
31 | namespace OpenSim.Framework.Servers | 30 | namespace OpenSim.Framework.Servers |
diff --git a/OpenSim/Framework/Servers/RestSessionService.cs b/OpenSim/Framework/Servers/RestSessionService.cs index 958ee26..60da05e 100644 --- a/OpenSim/Framework/Servers/RestSessionService.cs +++ b/OpenSim/Framework/Servers/RestSessionService.cs | |||
@@ -28,12 +28,10 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Collections.Generic; | ||
32 | using System.Reflection; | 31 | using System.Reflection; |
33 | using System.Text; | 32 | using System.Text; |
34 | using System.Xml; | 33 | using System.Xml; |
35 | using System.Xml.Serialization; | 34 | using System.Xml.Serialization; |
36 | |||
37 | using log4net; | 35 | using log4net; |
38 | 36 | ||
39 | namespace OpenSim.Framework.Servers | 37 | namespace OpenSim.Framework.Servers |
diff --git a/OpenSim/Framework/Servers/RestStreamHandler.cs b/OpenSim/Framework/Servers/RestStreamHandler.cs index 44c9dfc..afd7fe5 100644 --- a/OpenSim/Framework/Servers/RestStreamHandler.cs +++ b/OpenSim/Framework/Servers/RestStreamHandler.cs | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | using System.IO; | 28 | using System.IO; |
29 | using System.Text; | 29 | using System.Text; |
30 | using System.Net; | ||
31 | 30 | ||
32 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
33 | { | 32 | { |
diff --git a/OpenSim/Framework/Servers/Tests/OSHttpTests.cs b/OpenSim/Framework/Servers/Tests/OSHttpTests.cs index fe553c9..3a297bf 100644 --- a/OpenSim/Framework/Servers/Tests/OSHttpTests.cs +++ b/OpenSim/Framework/Servers/Tests/OSHttpTests.cs | |||
@@ -31,23 +31,18 @@ using System.IO; | |||
31 | using System.Net; | 31 | using System.Net; |
32 | using System.Net.Sockets; | 32 | using System.Net.Sockets; |
33 | using System.Text; | 33 | using System.Text; |
34 | |||
35 | using HttpServer; | 34 | using HttpServer; |
36 | using HttpServer.Exceptions; | ||
37 | using HttpServer.FormDecoders; | 35 | using HttpServer.FormDecoders; |
38 | |||
39 | using NUnit.Framework; | 36 | using NUnit.Framework; |
40 | using NUnit.Framework.SyntaxHelpers; | 37 | using NUnit.Framework.SyntaxHelpers; |
41 | 38 | ||
42 | using OpenSim.Framework.Servers; | ||
43 | |||
44 | namespace OpenSim.Framework.Servers.Tests | 39 | namespace OpenSim.Framework.Servers.Tests |
45 | { | 40 | { |
46 | [TestFixture] | 41 | [TestFixture] |
47 | public class OSHttpTests | 42 | public class OSHttpTests |
48 | { | 43 | { |
49 | // we need an IHttpClientContext for our tests | 44 | // we need an IHttpClientContext for our tests |
50 | public class TestHttpClientContext: HttpServer.IHttpClientContext | 45 | public class TestHttpClientContext: IHttpClientContext |
51 | { | 46 | { |
52 | private bool _secured; | 47 | private bool _secured; |
53 | public bool Secured | 48 | public bool Secured |
@@ -68,7 +63,7 @@ namespace OpenSim.Framework.Servers.Tests | |||
68 | public void Send(byte[] buffer, int offset, int size) {} | 63 | public void Send(byte[] buffer, int offset, int size) {} |
69 | } | 64 | } |
70 | 65 | ||
71 | public class TestHttpRequest: HttpServer.IHttpRequest | 66 | public class TestHttpRequest: IHttpRequest |
72 | { | 67 | { |
73 | public bool BodyIsComplete | 68 | public bool BodyIsComplete |
74 | { | 69 | { |