From 065d6d6fe1c8cd010d2bf0e68d6a2a926b17fc5c Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 23 Nov 2012 04:15:21 +0000
Subject: Delete unused BaseHttpServer.HandleAgentRequest()
---
.../Framework/Servers/HttpServer/BaseHttpServer.cs | 53 ----------------------
1 file changed, 53 deletions(-)
(limited to 'OpenSim/Framework/Servers')
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 66d80cf..2cd626f 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1282,59 +1282,6 @@ namespace OpenSim.Framework.Servers.HttpServer
map["login"] = OSD.FromString("false");
return map;
}
- ///
- /// A specific agent handler was provided. Such a handler is expecetd to have an
- /// intimate, and highly specific relationship with the client. Consequently,
- /// nothing is done here.
- ///
- ///
- ///
- ///
-
- private bool HandleAgentRequest(IHttpAgentHandler handler, OSHttpRequest request, OSHttpResponse response)
- {
- // In the case of REST, then handler is responsible for ALL aspects of
- // the request/response handling. Nothing is done here, not even encoding.
-
- try
- {
- return handler.Handle(request, response);
- }
- catch (Exception e)
- {
- // If the handler did in fact close the stream, then this will blow
- // chunks. So that that doesn't disturb anybody we throw away any
- // and all exceptions raised. We've done our best to release the
- // client.
- try
- {
- m_log.Warn("[HTTP-AGENT]: Error - " + e.Message);
- response.SendChunked = false;
- response.KeepAlive = true;
- response.StatusCode = (int)OSHttpStatusCode.ServerErrorInternalError;
- //response.OutputStream.Close();
- try
- {
- response.Send();
- //response.FreeContext();
- }
- catch (SocketException f)
- {
- // This has to be here to prevent a Linux/Mono crash
- m_log.Warn(
- String.Format("[BASE HTTP SERVER]: XmlRpcRequest issue {0}.\nNOTE: this may be spurious on Linux. ", f.Message), f);
- }
- }
- catch(Exception)
- {
- }
- }
-
- // Indicate that the request has been "handled"
-
- return true;
-
- }
public byte[] HandleHTTPRequest(OSHttpRequest request, OSHttpResponse response)
{
--
cgit v1.1
From 4b46a0d5368ae1ae95b5ba817f0ef4f7ed0c2692 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 23 Nov 2012 04:19:08 +0000
Subject: Make "show version" console command available across all servers
---
OpenSim/Framework/Servers/BaseOpenSimServer.cs | 8 --------
OpenSim/Framework/Servers/ServerBase.cs | 7 +++++++
2 files changed, 7 insertions(+), 8 deletions(-)
(limited to 'OpenSim/Framework/Servers')
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 89d3507..d8b4737 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -104,10 +104,6 @@ namespace OpenSim.Framework.Servers
"show threads",
"Show thread status", HandleShow);
- m_console.Commands.AddCommand("General", false, "show version",
- "show version",
- "Show server version", HandleShow);
-
m_console.Commands.AddCommand("General", false, "threads abort",
"threads abort ",
"Abort a managed thread. Use \"show threads\" to find possible threads.", HandleThreadsAbort);
@@ -263,10 +259,6 @@ namespace OpenSim.Framework.Servers
case "threads":
Notice(GetThreadsReport());
break;
-
- case "version":
- Notice(GetVersionText());
- break;
}
}
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs
index c182a3a..431dc9e 100644
--- a/OpenSim/Framework/Servers/ServerBase.cs
+++ b/OpenSim/Framework/Servers/ServerBase.cs
@@ -168,6 +168,9 @@ namespace OpenSim.Framework.Servers
"General", false, "show info", "show info", "Show general information about the server", HandleShow);
m_console.Commands.AddCommand(
+ "General", false, "show version", "show version", "Show server version", HandleShow);
+
+ m_console.Commands.AddCommand(
"General", false, "show uptime", "show uptime", "Show server uptime", HandleShow);
m_console.Commands.AddCommand(
@@ -222,6 +225,10 @@ namespace OpenSim.Framework.Servers
ShowInfo();
break;
+ case "version":
+ Notice(GetVersionText());
+ break;
+
case "uptime":
Notice(GetUptimeReport());
break;
--
cgit v1.1
From e0a3e01850ea066ef10bfe59ffa81b8ac425442a Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 23 Nov 2012 04:27:04 +0000
Subject: Make "force gc" console command available across all servers
---
OpenSim/Framework/Servers/BaseOpenSimServer.cs | 11 -----------
OpenSim/Framework/Servers/ServerBase.cs | 12 ++++++++++++
2 files changed, 12 insertions(+), 11 deletions(-)
(limited to 'OpenSim/Framework/Servers')
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index d8b4737..3f66ab5 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -112,17 +112,6 @@ namespace OpenSim.Framework.Servers
"threads show",
"Show thread status. Synonym for \"show threads\"",
(string module, string[] args) => Notice(GetThreadsReport()));
-
- m_console.Commands.AddCommand("General", false, "force gc",
- "force gc",
- "Manually invoke runtime garbage collection. For debugging purposes",
- HandleForceGc);
- }
-
- private void HandleForceGc(string module, string[] args)
- {
- MainConsole.Instance.Output("Manually invoking runtime garbage collection");
- GC.Collect();
}
///
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs
index 431dc9e..b8bc27e 100644
--- a/OpenSim/Framework/Servers/ServerBase.cs
+++ b/OpenSim/Framework/Servers/ServerBase.cs
@@ -209,6 +209,18 @@ namespace OpenSim.Framework.Servers
"General", false, "command-script",
"command-script