aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2018-01-20 12:11:07 +0000
committerUbitUmarov2018-01-20 12:11:07 +0000
commit49b4408782ddb598fbbc105665b2af4080c33a50 (patch)
treee8b83cea3271cb71d139d1babd51cb303ee6213e
parentimprove LLSDHelpers DeserialiseOSDMap (diff)
downloadopensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.zip
opensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.tar.gz
opensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.tar.bz2
opensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.tar.xz
some cleanup
-rw-r--r--OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs4
-rw-r--r--OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs4
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs12
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs1
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs1
5 files changed, 8 insertions, 14 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
index 1f4a8c9..73f2770 100644
--- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
+++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
@@ -120,10 +120,6 @@ namespace OpenSim.Capabilities.Handlers
120 { 120 {
121 LLSDInventoryFolderContents thiscontents = contentsToLLSD(icoll.Collection, icoll.Descendents); 121 LLSDInventoryFolderContents thiscontents = contentsToLLSD(icoll.Collection, icoll.Descendents);
122 inventoryitemstr = LLSDHelpers.SerialiseLLSDReply(thiscontents); 122 inventoryitemstr = LLSDHelpers.SerialiseLLSDReply(thiscontents);
123// inventoryitemstr = inventoryitemstr.Replace("<llsd>", "");
124// inventoryitemstr = inventoryitemstr.Replace("</llsd>", "");
125// inventoryitemstr = inventoryitemstr.Substring(6,inventoryitemstr.Length - 13);
126// tmpresponse.Append(inventoryitemstr);
127 tmpresponse.Append(inventoryitemstr.Substring(6,inventoryitemstr.Length - 13)); 123 tmpresponse.Append(inventoryitemstr.Substring(6,inventoryitemstr.Length - 13));
128 } 124 }
129 125
diff --git a/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs b/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs
index e73cf9e..2499ce4 100644
--- a/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs
+++ b/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs
@@ -66,8 +66,6 @@ namespace OpenSim.Capabilities.Handlers
66 Hashtable ret = new Hashtable(); 66 Hashtable ret = new Hashtable();
67 ret["int_response_code"] = (int)System.Net.HttpStatusCode.NotFound; 67 ret["int_response_code"] = (int)System.Net.HttpStatusCode.NotFound;
68 ret["content_type"] = "text/plain"; 68 ret["content_type"] = "text/plain";
69 ret["keepalive"] = false;
70 ret["reusecontext"] = false;
71 ret["int_bytes"] = 0; 69 ret["int_bytes"] = 0;
72 string textureStr = (string)request["texture_id"]; 70 string textureStr = (string)request["texture_id"];
73 string format = (string)request["format"]; 71 string format = (string)request["format"];
@@ -112,8 +110,6 @@ namespace OpenSim.Capabilities.Handlers
112 ret["error_status_text"] = "not found"; 110 ret["error_status_text"] = "not found";
113 ret["str_response_string"] = "not found"; 111 ret["str_response_string"] = "not found";
114 ret["content_type"] = "text/plain"; 112 ret["content_type"] = "text/plain";
115 ret["keepalive"] = false;
116 ret["reusecontext"] = false;
117 ret["int_bytes"] = 0; 113 ret["int_bytes"] = 0;
118 } 114 }
119 } 115 }
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index b575ed9..72b6116 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -898,7 +898,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
898 if (packet.Type == PacketType.CoarseLocationUpdate && allowSplitting) 898 if (packet.Type == PacketType.CoarseLocationUpdate && allowSplitting)
899 allowSplitting = false; 899 allowSplitting = false;
900 900
901 bool packetQueued = false; 901// bool packetQueued = false;
902 902
903 if (allowSplitting && packet.HasVariableBlocks) 903 if (allowSplitting && packet.HasVariableBlocks)
904 { 904 {
@@ -911,15 +911,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
911 for (int i = 0; i < packetCount; i++) 911 for (int i = 0; i < packetCount; i++)
912 { 912 {
913 byte[] data = datas[i]; 913 byte[] data = datas[i];
914 if (!SendPacketData(udpClient, data, packet.Type, category, method)) 914// if (!SendPacketData(udpClient, data, packet.Type, category, method))
915 packetQueued = true; 915// packetQueued = true;
916 SendPacketData(udpClient, data, packet.Type, category, method);
916 } 917 }
917 } 918 }
918 else 919 else
919 { 920 {
920 byte[] data = packet.ToBytes(); 921 byte[] data = packet.ToBytes();
921 if (!SendPacketData(udpClient, data, packet.Type, category, method)) 922// if (!SendPacketData(udpClient, data, packet.Type, category, method))
922 packetQueued = true; 923// packetQueued = true;
924 SendPacketData(udpClient, data, packet.Type, category, method);
923 } 925 }
924 926
925 PacketPool.Instance.ReturnPacket(packet); 927 PacketPool.Instance.ReturnPacket(packet);
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index e10e787..ec09fe6 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -77,7 +77,6 @@ namespace OpenSim.Region.Framework.Scenes
77 public class ScenePresence : EntityBase, IScenePresence 77 public class ScenePresence : EntityBase, IScenePresence
78 { 78 {
79 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 79 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
80 private static readonly String LogHeader = "[SCENE PRESENCE]";
81 80
82// ~ScenePresence() 81// ~ScenePresence()
83// { 82// {
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs
index 47e7c7b..42ad391 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs
@@ -54,6 +54,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
54 using dReal = System.Single; 54 using dReal = System.Single;
55//#endif 55//#endif
56 56
57 [SuppressUnmanagedCodeSecurityAttribute]
57 internal static class SafeNativeMethods 58 internal static class SafeNativeMethods
58 { 59 {
59 internal static dReal Infinity = dReal.MaxValue; 60 internal static dReal Infinity = dReal.MaxValue;