libp2p / py-libp2p

The Python implementation of the libp2p networking stack 🐍 [under development]
https://libp2p.io
Other
468 stars 101 forks source link

Enhance TCP transport: library should respect a port of 0 #421

Open ralexstokes opened 4 years ago

ralexstokes commented 4 years ago

A port of 0 when using the TCP transport for listening should defer to the operating system to provide a free port.

We should provide some way for a user of this library to do so and then expose the allocated port in a straightforward manner.