fix(gateway): harden websocket streaming under client backpressure
This commit is contained in:
@@ -12,7 +12,7 @@ compile-time bounds, not targets that may grow with match duration.
|
||||
| Outgoing queue | 12 entries | Queue overflow is counted; memory cannot grow. |
|
||||
| Game command queue | 16 entries | Excess commands receive `queue_full`. |
|
||||
| Input rate | 20 messages/second | Excess messages are rejected; sustained abuse above 40 in the same window is disconnected. |
|
||||
| Player response budget | 250 ms | The physical stress client fails above this round-trip threshold. |
|
||||
| Player response budget | 500 ms | The physical stress client fails above this round-trip threshold. |
|
||||
| Observer update policy | Latest bounded projection | A busy observer may lose intermediate dynamic chunks and recover on a newer projection. Failed or stalled required sends close the socket. |
|
||||
| Reconnect deadline | 60,000 ms | Gameplay pauses, then ends in a draw at expiry. |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user