1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

AutoExpandMTU disabled per default; minor tweaks to resends

This commit is contained in:
lidgren
2010-12-22 11:56:10 +00:00
parent 6989fbda61
commit 43b40f8a10
7 changed files with 42 additions and 19 deletions

View File

@@ -127,7 +127,6 @@ namespace Lidgren.Network
m_lastSentMTUAttemptSize = size;
m_lastSentMTUAttemptTime = now;
//m_peer.LogDebug("Requesting MTU expand " + size + " bytes");
m_statistics.PacketSent(len, 1);
}
@@ -137,7 +136,8 @@ namespace Lidgren.Network
return;
m_expandMTUStatus = ExpandMTUStatus.Finished;
m_currentMTU = size;
m_peer.LogVerbose("Maximum Transmission Unit set to: " + m_currentMTU + " bytes");
if (m_currentMTU != m_peerConfiguration.m_maximumTransmissionUnit)
m_peer.LogDebug("Expanded Maximum Transmission Unit to: " + m_currentMTU + " bytes");
return;
}