You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to go-libp2p we can add a flag to the ConnectionStat interface as well as an option to opt-in for opening streams on connections that will indicate whether that connection is transient and thus may be closed soon.
The text was updated successfully, but these errors were encountered:
Some connections have resources limits imposed on them, such as circuit relay connections. If these limits are breached the connection will be closed by the remote.
When this is the case, the connection will have a `.transient` boolean property set to true.
By default any attempt to run a protocol over a transient connection will throw (outgoing) or be reset (incoming), this is to prevent, for example, bitswap exceeding the connection transfer limit and causing the connection to be closed by the relay server when it should be reserved for the WebRTC SDP exchange to allow incoming dials.
Protocols can opt-in to being run over transient connections by specifying a `runOnTransientConnection` flag during `libp2p.handle` (incoming) and `connection.openStream`/`libp2p.dialProtocol` (outgoing).
Closes#1611
Similar to go-libp2p we can add a flag to the ConnectionStat interface as well as an option to opt-in for opening streams on connections that will indicate whether that connection is transient and thus may be closed soon.
The text was updated successfully, but these errors were encountered: