1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 16:48:27 -05:00

increase buffer size for rcon connection

This commit is contained in:
RaidMax
2021-01-17 20:04:32 -06:00
parent f984d509b3
commit 17dd35c4bb
2 changed files with 8 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace IW4MAdmin.Application.RCon
}
public int ConnectionAttempts { get; set; }
const int BufferSize = 8192;
private const int BufferSize = 16384;
public readonly byte[] ReceiveBuffer = new byte[BufferSize];
public readonly SemaphoreSlim OnComplete = new SemaphoreSlim(1, 1);
public readonly ManualResetEventSlim OnSentData = new ManualResetEventSlim(false);