Files
moon-i2p/ratchet
nandi 5d97ad8b28
check / check (macos-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 27s
check / check (windows-latest) (push) Failing after 26s
fix: harden ratchet sessions and throttle BitTorrent DHT traffic
- Ratchet: cap outbound NSR pending entries per peer and globally, age them out after 180s, and prune expired or excess sessions.
- Ratchet: keep NSR pending entries across multi-NSR replies, skip failed decrypts instead of aborting, and bound inbound pending entries.
- Ratchet: expire sessions with stale receive state or high message counts; only mark sessions confirmed when no reply has been received.
- Torrent DHT: add per-node cooldowns for get_peers and announce, limit fanout and pending transactions, and skip nodes already in the routing table.
- Torrent DHT: use slower maintenance and query intervals in public mode.
- Torrent peers: mark ratchet sessions stale after stalled SYN, connect timeout, handshake timeout, or idle timeout so they re-key.
- Torrent peers: raise the per-torrent peer limit to 16 and log I2CP decode errors in debug mode.
2026-11-28 19:43:10 -08:00
..