go-libp2p
go-libp2p copied to clipboard
feat(tcpreuse): add options for sharing TCP listeners amongst TCP, WS and WSS transports
closes #2684
@MarcoPolo @sukunrt I took a stab at this as a result of looking at https://github.com/ipfs/kubo/pull/10521. I also pulled from @Jorropo's work on #2737.
Initial testing seems to indicate things work ok, but this definitely needs more tests, API cleanup + eyes before merging.
Side note: Given that we're sharing the underlying TCP listener now I wonder if we basically have to tackle #1435 as well.