Closed kasperisager closed 1 year ago
Removed use of the connection pool for outbound connections to relays for now and instead destroy the relay socket when the raw stream closes. This isn't optimal, but should at least be correct.
Thank you both of you, this is huge. 🙏🥳
This PR implements client connection support for the blind relay protocol (https://github.com/holepunchto/blind-relay). This allows peers running in both client and server mode to establish connections to other peers through blind relays. Additionally, an initial implementation of a connection pool has been added, providing a way to more efficiently manage and deduplicate connections to other peers.
When provided with a connection pool, peers will use the pool for outbound connections to blind relays.