aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs34
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs13
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/Properties/AssemblyInfo.cs4
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/Tests/PacketHandlerTests.cs2
5 files changed, 32 insertions, 23 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 0388828..9c26afe 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -3892,6 +3892,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3892 { 3892 {
3893 part.Shape.LightEntry = false; 3893 part.Shape.LightEntry = false;
3894 } 3894 }
3895
3896 if (part.Shape != null && (part.Shape.SculptType == (byte)SculptType.Mesh))
3897 {
3898 // Ensure that mesh has at least 8 valid faces
3899 part.Shape.ProfileBegin = 12500;
3900 part.Shape.ProfileEnd = 0;
3901 part.Shape.ProfileHollow = 27500;
3902 }
3895 } 3903 }
3896 3904
3897 if (part.Shape != null && (part.Shape.SculptType == (byte)SculptType.Mesh)) 3905 if (part.Shape != null && (part.Shape.SculptType == (byte)SculptType.Mesh))
@@ -6587,19 +6595,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6587 #endregion 6595 #endregion
6588 6596
6589 AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit; 6597 AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit;
6590 if (handlerAgentRequestSit != null)
6591 if (!(agentRequestSit.AgentData == null
6592 || agentRequestSit.TargetObject == null
6593 || agentRequestSit.TargetObject.TargetID == null
6594 || agentRequestSit.TargetObject.Offset == null))
6595 {
6596 var sp = m_scene.GetScenePresence(agentRequestSit.AgentData.AgentID);
6597 if (sp == null || sp.ParentID != 0) // ignore packet if agent is already sitting
6598 return true;
6599 6598
6600 handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID, 6599 if (handlerAgentRequestSit != null)
6601 agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); 6600 handlerAgentRequestSit(this, agentRequestSit.AgentData.AgentID,
6602 } 6601 agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset);
6603 } 6602 }
6604 return true; 6603 return true;
6605 } 6604 }
@@ -12254,11 +12253,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12254 if (logPacket) 12253 if (logPacket)
12255 m_log.DebugFormat( 12254 m_log.DebugFormat(
12256 "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", 12255 "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}",
12257 Name, SceneAgent.IsChildAgent ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); 12256 Name, SceneAgent.IsChildAgent ? "child" : "root ", Scene.Name, packet.Type);
12258 } 12257 }
12259 12258
12260 if (!ProcessPacketMethod(packet)) 12259 if (!ProcessPacketMethod(packet))
12261 m_log.Warn("[CLIENT]: unhandled packet " + packet.Type); 12260 m_log.WarnFormat(
12261 "[CLIENT]: Unhandled packet {0} from {1} ({2}) in {3}. Ignoring.",
12262 packet.Type, Name, SceneAgent.IsChildAgent ? "child" : "root ", Scene.Name);
12262 } 12263 }
12263 12264
12264 private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket) 12265 private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket)
@@ -12466,6 +12467,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12466 return String.Empty; 12467 return String.Empty;
12467 } 12468 }
12468 12469
12470 public OSDMap OReport(string uptime, string version)
12471 {
12472 return new OSDMap();
12473 }
12474
12469 /// <summary> 12475 /// <summary>
12470 /// Make an asset request to the asset service in response to a client request. 12476 /// Make an asset request to the asset service in response to a client request.
12471 /// </summary> 12477 /// </summary>
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index 2aeb4cc..7035e38 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -204,9 +204,12 @@ namespace OpenMetaverse
204 { 204 {
205 UDPPacketBuffer buf; 205 UDPPacketBuffer buf;
206 206
207 if (UsePools) 207 // FIXME: Disabled for now as this causes issues with reused packet objects interfering with each other
208 buf = Pool.GetObject(); 208 // on Windows with m_asyncPacketHandling = true, though this has not been seen on Linux.
209 else 209 // Possibly some unexpected issue with fetching UDP data concurrently with multiple threads. Requires more investigation.
210// if (UsePools)
211// buf = Pool.GetObject();
212// else
210 buf = new UDPPacketBuffer(); 213 buf = new UDPPacketBuffer();
211 214
212 if (IsRunningInbound) 215 if (IsRunningInbound)
@@ -287,8 +290,8 @@ namespace OpenMetaverse
287 catch (ObjectDisposedException) { } 290 catch (ObjectDisposedException) { }
288 finally 291 finally
289 { 292 {
290 if (UsePools) 293// if (UsePools)
291 Pool.ReturnObject(buffer); 294// Pool.ReturnObject(buffer);
292 295
293 // Synchronous mode waits until the packet callback completes 296 // Synchronous mode waits until the packet callback completes
294 // before starting the receive to fetch another packet 297 // before starting the receive to fetch another packet
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/Properties/AssemblyInfo.cs b/OpenSim/Region/ClientStack/Linden/UDP/Properties/AssemblyInfo.cs
index af2f6f8..98ef72f 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32[assembly: AssemblyVersion("0.7.5.*")] 32[assembly: AssemblyVersion("0.7.6.*")]
33[assembly: AssemblyFileVersion("1.0.0.0")] 33
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs b/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs
index 5fcf376..7d9f581 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs
@@ -43,7 +43,7 @@ using OpenSim.Tests.Common.Mock;
43namespace OpenSim.Region.ClientStack.LindenUDP.Tests 43namespace OpenSim.Region.ClientStack.LindenUDP.Tests
44{ 44{
45 [TestFixture] 45 [TestFixture]
46 public class LLImageManagerTests 46 public class LLImageManagerTests : OpenSimTestCase
47 { 47 {
48 private AssetBase m_testImageAsset; 48 private AssetBase m_testImageAsset;
49 private Scene scene; 49 private Scene scene;
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/Tests/PacketHandlerTests.cs b/OpenSim/Region/ClientStack/Linden/UDP/Tests/PacketHandlerTests.cs
index 0f88ec6..5f73a94 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/Tests/PacketHandlerTests.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/Tests/PacketHandlerTests.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
39 /// Tests for the LL packet handler 39 /// Tests for the LL packet handler
40 /// </summary> 40 /// </summary>
41 [TestFixture] 41 [TestFixture]
42 public class PacketHandlerTests 42 public class PacketHandlerTests : OpenSimTestCase
43 { 43 {
44// [Test] 44// [Test]
45// /// <summary> 45// /// <summary>