Prevent RUDP snapshot traffic from starving peers
This commit is contained in:
parent
a18a7400fb
commit
fbee58eba1
3 changed files with 24 additions and 3 deletions
|
|
@ -157,6 +157,11 @@ namespace GameCult.Networking
|
|||
IPAddress.IsLoopback(remoteAddress) ? IPAddress.Loopback : IPAddress.Any,
|
||||
0));
|
||||
socket.ReceiveTimeout = 20;
|
||||
if (string.Equals(Environment.GetEnvironmentVariable("CULTNET_TRACE_RUDP"), "1", StringComparison.Ordinal))
|
||||
{
|
||||
Console.Error.WriteLine(
|
||||
$"CultNet RUDP client bind local={socket.LocalEndPoint} remote={remoteAddress}:{port} runtime={_runtimeId}");
|
||||
}
|
||||
_transport = new CultNetRudpSocketTransportConnection(new CultNetRudpSocketTransportOptions
|
||||
{
|
||||
RuntimeId = _runtimeId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue