aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2019-03-10 11:23:38 +0000
committerUbitUmarov2019-03-10 11:23:38 +0000
commit7b55d42b11d899456d8e5a153fb097e8691b92e8 (patch)
tree7ef92148adbd0da0c1589d1bc19b8a4219b4aa7a /OpenSim
parentdo not send animated attachments to viewers that do not support them. (diff)
downloadopensim-SC-7b55d42b11d899456d8e5a153fb097e8691b92e8.zip
opensim-SC-7b55d42b11d899456d8e5a153fb097e8691b92e8.tar.gz
opensim-SC-7b55d42b11d899456d8e5a153fb097e8691b92e8.tar.bz2
opensim-SC-7b55d42b11d899456d8e5a153fb097e8691b92e8.tar.xz
lludp fix max packet size on ack appends
Diffstat (limited to 'OpenSim')
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 6fd782a..2300800 100755
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -256,6 +256,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
256 256
257 /// <summary>Maximum transmission unit, or UDP packet size, for the LLUDP protocol</summary> 257 /// <summary>Maximum transmission unit, or UDP packet size, for the LLUDP protocol</summary>
258 public const int MTU = 1400; 258 public const int MTU = 1400;
259 public const int MAXPAYLOAD = 1250;
259 260
260 /// <summary>Number of forced client logouts due to no receipt of packets before timeout.</summary> 261 /// <summary>Number of forced client logouts due to no receipt of packets before timeout.</summary>
261 public int ClientLogoutsDueToNoReceives { get; protected set; } 262 public int ClientLogoutsDueToNoReceives { get; protected set; }
@@ -1150,7 +1151,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1150 // no more ACKs to append 1151 // no more ACKs to append
1151 int ackCount = 0; 1152 int ackCount = 0;
1152 uint ack; 1153 uint ack;
1153 while (dataLength + 5 < buffer.Data.Length && ackCount < 256 && udpClient.PendingAcks.Dequeue(out ack)) 1154 while (dataLength + 5 < MTU && ackCount < 256 && udpClient.PendingAcks.Dequeue(out ack))
1154 { 1155 {
1155 Utils.UIntToBytesBig(ack, buffer.Data, dataLength); 1156 Utils.UIntToBytesBig(ack, buffer.Data, dataLength);
1156 dataLength += 4; 1157 dataLength += 4;