aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 1927ed4..15f522d 100755
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5319,8 +5319,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5319 lastzc = zc.ZeroCount; 5319 lastzc = zc.ZeroCount;
5320 5320
5321 CreateCompressedUpdateBlockZC(sop, mysp, zc); 5321 CreateCompressedUpdateBlockZC(sop, mysp, zc);
5322 //if (zc.Position < LLUDPServer.MAXPAYLOAD - 200) 5322 if (zc.Position < LLUDPServer.MAXPAYLOAD - 200)
5323 if (zc.Position < LLUDPServer.MAXPAYLOAD - 400)
5324 { 5323 {
5325 //tau.Add(eu); 5324 //tau.Add(eu);
5326 ++count; 5325 ++count;
@@ -5404,10 +5403,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5404 Utils.UIntToBytes((uint)sop.ParentGroup.PseudoCRC, data, pos); pos += 4; //WRONG 5403 Utils.UIntToBytes((uint)sop.ParentGroup.PseudoCRC, data, pos); pos += 4; //WRONG
5405 Utils.UIntToBytes(primflags, data, pos); pos += 4; 5404 Utils.UIntToBytes(primflags, data, pos); pos += 4;
5406 5405
5407 //if (pos < (LLUDPServer.MAXPAYLOAD - 12)) 5406 ++count;
5408 if (pos < (LLUDPServer.MAXPAYLOAD - 200)) 5407 if (pos > (LLUDPServer.MAXPAYLOAD - 13))
5409 ++count;
5410 else
5411 { 5408 {
5412 // we need more packets 5409 // we need more packets
5413 UDPPacketBuffer newbuf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint); 5410 UDPPacketBuffer newbuf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint);
@@ -5420,6 +5417,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5420 buf = newbuf; 5417 buf = newbuf;
5421 data = buf.Data; 5418 data = buf.Data;
5422 pos = 18; 5419 pos = 18;
5420
5423 count = 0; 5421 count = 0;
5424 } 5422 }
5425 } 5423 }