- 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.