
Cloud Vulnerability DB
A community-led vulnerabilities database
Hyperswarm counts connections against max_peers in ConnectionSet, but a slot is only released when connection setup fails (server_failure_rx, peeroxide/src/swarm.rs ~L699) or on dedup (~L993). Closing or dropping an established SwarmConnection never releases its slot.
max_peers connections in total (reconnects included), a server ignores every new handshake (swarm.rs ~L1296, ~L1685) and the client side stops dialing discovered peers (~L856) until the process restarts.max_peers throwaway key pairs.connections.has(&pk) stays true.Tie each slot to a guard held by SwarmConnection, released on drop over the existing actor channel, with a per-slot id so dropping an old connection never frees a newer slot for the same key (as in sshcrab's vendored patch). Keep the guard private. Consider whether moving conn.peer out of SwarmConnection should keep the slot held.
A connection's slot now follows the connection itself, as in Node's hyperswarm:
libudx handle reports when a stream is over and when its storage is released.max_peers connections.
Fixed in commits 6e2e0cd, a732601, 5e769cd, afebbbd and 7b072dd.Joachim Schiele (@qknight), #49 / https://github.com/nixcloud/sshcrab#7-changes-to-the-peeroxide-code
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."