From 04625109560fb54d613b1fc9c81a8a9f387720c9 Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Fri, 30 May 2008 08:35:57 +0000
Subject: Update svn properties. Formatting cleanup.
---
OpenSim/Framework/Communications/CommunicationsManager.cs | 14 +++++++-------
OpenSim/Framework/Servers/BaseHttpServer.cs | 15 ++++++++++-----
OpenSim/Framework/Servers/OSHttpRequestPump.cs | 2 +-
OpenSim/Framework/Servers/OSHttpServer.cs | 12 ++++++------
4 files changed, 24 insertions(+), 19 deletions(-)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index cc64e6c..e8353b4 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -255,28 +255,28 @@ namespace OpenSim.Framework.Communications
remote_client.SendNameReply(uuid, names[0], names[1]);
}
- }
+ }
}
private string[] doUUIDNameRequest(LLUUID uuid)
{
string[] returnstring = new string[0];
bool doLookup = false;
-
-
+
+
lock (m_nameRequestCache)
{
if (m_nameRequestCache.ContainsKey(uuid))
{
returnstring = m_nameRequestCache[uuid];
}
- else
+ else
{
// we don't want to lock the dictionary while we're doing the lookup
doLookup = true;
}
}
-
+
if (doLookup) {
UserProfileData profileData = m_userService.GetUserProfile(uuid);
if (profileData != null)
@@ -293,7 +293,7 @@ namespace OpenSim.Framework.Communications
}
}
return returnstring;
-
+
}
public bool UUIDNameCachedTest(LLUUID uuid)
@@ -311,7 +311,7 @@ namespace OpenSim.Framework.Communications
string lastname = names[1];
return firstname + " " + lastname;
-
+
}
return "(hippos)";
}
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index e57682f..ce351ca 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -84,7 +84,8 @@ namespace OpenSim.Framework.Servers
string handlerKey = GetHandlerKey(httpMethod, path);
- lock(m_streamHandlers) {
+ lock (m_streamHandlers)
+ {
if (!m_streamHandlers.ContainsKey(handlerKey))
{
//m_log.DebugFormat("[BASE HTTP SERVER]: Adding handler key {0}", handlerKey);
@@ -100,7 +101,8 @@ namespace OpenSim.Framework.Servers
public bool AddXmlRPCHandler(string method, XmlRpcMethod handler)
{
- lock(m_rpcHandlers) {
+ lock (m_rpcHandlers)
+ {
if (!m_rpcHandlers.ContainsKey(method))
{
m_rpcHandlers.Add(method, handler);
@@ -114,7 +116,8 @@ namespace OpenSim.Framework.Servers
public bool AddHTTPHandler(string method, GenericHTTPMethod handler)
{
- lock(m_HTTPHandlers) {
+ lock (m_HTTPHandlers)
+ {
if (!m_HTTPHandlers.ContainsKey(method))
{
m_HTTPHandlers.Add(method, handler);
@@ -132,7 +135,8 @@ namespace OpenSim.Framework.Servers
public bool AddAgentHandler(string agent, IHttpAgentHandler handler)
{
- lock(m_agentHandlers) {
+ lock (m_agentHandlers)
+ {
if (!m_agentHandlers.ContainsKey(agent))
{
m_agentHandlers.Add(agent, handler);
@@ -171,7 +175,8 @@ namespace OpenSim.Framework.Servers
if (TryGetAgentHandler(request, response, out agentHandler))
{
- if (HandleAgentRequest(agentHandler, request, response)) {
+ if (HandleAgentRequest(agentHandler, request, response))
+ {
m_log.DebugFormat("[HTTP-AGENT] Handler located for {0}", request.UserAgent);
return;
}
diff --git a/OpenSim/Framework/Servers/OSHttpRequestPump.cs b/OpenSim/Framework/Servers/OSHttpRequestPump.cs
index 78348bb..8a3e73f 100644
--- a/OpenSim/Framework/Servers/OSHttpRequestPump.cs
+++ b/OpenSim/Framework/Servers/OSHttpRequestPump.cs
@@ -47,7 +47,7 @@ namespace OpenSim.Framework.Servers
public static OSHttpRequestPump[] Pumps(OSHttpServer server, int poolSize)
{
OSHttpRequestPump[] pumps = new OSHttpRequestPump[poolSize];
- for(int i = 0; i < pumps.Length; i++)
+ for (int i = 0; i < pumps.Length; i++)
{
pumps[i]._httpServer = server;
}
diff --git a/OpenSim/Framework/Servers/OSHttpServer.cs b/OpenSim/Framework/Servers/OSHttpServer.cs
index e6caac3..3aa8042 100644
--- a/OpenSim/Framework/Servers/OSHttpServer.cs
+++ b/OpenSim/Framework/Servers/OSHttpServer.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Framework.Servers
// thread identifier
protected string _engineId;
- public string EngineID
+ public string EngineID
{
get { return _engineId; }
}
@@ -86,7 +86,7 @@ namespace OpenSim.Framework.Servers
///
/// Instantiate an HTTPS server.
///
- public OSHttpServer(IPAddress address, int port, X509Certificate certificate, int poolSize) :
+ public OSHttpServer(IPAddress address, int port, X509Certificate certificate, int poolSize) :
this(address, port, poolSize)
{
_engineId = String.Format("OSHttpServer [HTTPS:{0}/ps:{1}]", port, poolSize);
@@ -96,7 +96,7 @@ namespace OpenSim.Framework.Servers
///
/// Start the HTTP server engine.
///
- public void Start()
+ public void Start()
{
_engine = new Thread(new ThreadStart(Engine));
_engine.Name = _engineId;
@@ -107,13 +107,13 @@ namespace OpenSim.Framework.Servers
///
///
- private void Engine()
+ private void Engine()
{
- while (true)
+ while (true)
{
// do stuff
}
}
-
+
}
}
--
cgit v1.1