Add configuration option for address listen error tolerance #575
Labels
exp/novice
Someone with a little familiarity can pick up
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
Problem
Currently if libp2p is provided a list of multiaddrs and there are no valid transports configured for those multiaddrs, libp2p will throw an error on startup and shutdown.
Additionally, if mulitaddrs for an existing transport are provided but listening fails for all multiaddrs for that transport, such as a webrtc-star/etc server being down, libp2p will thrown an error and shutdown.
Solution
We should support the configuration of this tolerance. For some applications it could be perfectly acceptable for nodes to start in dial only mode if all multiaddrs failed for a given transport, or all transports. While libp2p is currently more aggressive with its errors to favor transparency of issues, it shouldn't be restricted to this.
Refs:
The text was updated successfully, but these errors were encountered: