[repo] Protocol: ENet timeout rule counts send attempts, not retries

This commit is contained in:
2026-11-25 12:23:47 +01:00
parent 3bd7ebeaed
commit 424cccfa92
+2 -1
View File
@@ -251,7 +251,8 @@ The control stream runs over a custom fork of ENet supporting IPv4 and IPv6 [W4]
- **Limits** [E]: MTU 576-4096, window 4096-65536, channels 1-255, peer id ≤ 0xFFF, at most 1024 × 1024 fragments.
- **Stock defaults** [E]: MTU 1392; window 65536 when bandwidth is unlimited; ping every 500 ms when idle;
retransmission timeout = RTT + 4 × RTT variance (initial RTT 500 ms), doubling per retry; a peer is dropped when
the oldest unacknowledged command is 30 s old, or after 32 retries once it is at least 5 s old.
the oldest unacknowledged command is 30 s old, or once it has been sent 6 times (`2^(attempts-1) ≥ 32`, the
timeout limit) and is at least 5 s old.
How the host uses it [M]: one peer per session; host created with a channel limit of 0x30; every host message is sent
**reliable on channel 0**. Moonshine does this with stock-wire ENet and real Moonlight clients (see