Production ready: hardening, limits, docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-26 20:55:39 +02:00
co-authored by Claude Opus 5.5
parent 4a948128e5
commit 7e291d06ea
6 changed files with 63 additions and 4 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ public static class Wire
/// <summary>TCP-Verbindung zu einem Spieler, gleiches Format wie in der Mod: [int Länge][byte Typ][Payload].</summary>
public sealed class Connection
{
const int MaxFrame = 32 * 1024 * 1024;
// Spieler schicken nur kleine Pakete (Positionen, Aktionen); der Spielstand geht nur vom Server zum Spieler
const int MaxFrame = 1024 * 1024;
public bool IsClosed { get; private set; }
public string CloseReason { get; private set; }