diff options
| author | historia <[not public]> | 2026-09-15 13:56:10 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-15 13:56:48 -0400 |
| commit | b3568f03e4103dd46db2ccc680fbab0a6454d604 (patch) | |
| tree | db3f6bb4f3d7c1deefbcd50de0f5022756d6b9ae /internal/net/wsconn.go | |
| parent | f4ea40c4b3589104dfaced3481ba19c5735889ae (diff) | |
| download | thehouseoficarus-b3568f03e4103dd46db2ccc680fbab0a6454d604.tar.gz | |
fix: telnet buffer reuse, bank stack handling,
transport casino gate, and admin cache invalidation
Diffstat (limited to 'internal/net/wsconn.go')
| -rw-r--r-- | internal/net/wsconn.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/net/wsconn.go b/internal/net/wsconn.go index d6f45dc..4990c0b 100644 --- a/internal/net/wsconn.go +++ b/internal/net/wsconn.go @@ -9,6 +9,9 @@ type wsConn struct { } func newWSConn(conn *websocket.Conn) *wsConn { + // Bound incoming message size so a client cannot push arbitrarily large + // frames into memory before the session's truncation logic runs. + conn.SetReadLimit(maxLineLength * 4) return &wsConn{conn: conn} } |
