From c4e453d9480a21e69535315879275ed04224c45d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 24 Aug 2019 23:33:05 +0100 Subject: [PATCH] revert last change and o fix the damm silly bug --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 1927ed4826..15f522df20 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 lastzc = zc.ZeroCount; CreateCompressedUpdateBlockZC(sop, mysp, zc); - //if (zc.Position < LLUDPServer.MAXPAYLOAD - 200) - if (zc.Position < LLUDPServer.MAXPAYLOAD - 400) + if (zc.Position < LLUDPServer.MAXPAYLOAD - 200) { //tau.Add(eu); ++count; @@ -5404,10 +5403,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP Utils.UIntToBytes((uint)sop.ParentGroup.PseudoCRC, data, pos); pos += 4; //WRONG Utils.UIntToBytes(primflags, data, pos); pos += 4; - //if (pos < (LLUDPServer.MAXPAYLOAD - 12)) - if (pos < (LLUDPServer.MAXPAYLOAD - 200)) - ++count; - else + ++count; + if (pos > (LLUDPServer.MAXPAYLOAD - 13)) { // we need more packets UDPPacketBuffer newbuf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint); @@ -5420,6 +5417,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP buf = newbuf; data = buf.Data; pos = 18; + count = 0; } }