We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c1918 commit 4f11d39Copy full SHA for 4f11d39
LiteNetLib/NetPeer.cs
@@ -823,7 +823,7 @@ private void UpdateMtuLogic(int deltaTime)
823
return;
824
825
//Send increased packet
826
- int newMtu = NetConstants.PossibleMtu[_mtuIdx + 1];
+ int newMtu = NetConstants.PossibleMtu[_mtuIdx + 1] - NetManager.ExtraPacketSizeForLayer;
827
var p = _packetPool.GetPacket(newMtu);
828
p.Property = PacketProperty.MtuCheck;
829
FastBitConverter.GetBytes(p.RawData, 1, newMtu); //place into start
0 commit comments