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
Currently there's an inconsistency between swarm.NewStream and swarm.DialPeer. swarm.NewStream returns ErrTransientConn when no unlimited connection to the peer exists. swarm.DialPeer returns the transient connection even when no network.WithUseTransient option is used.
swarm.DialPeer should wait for a direct connection when it only has a transient connection and return ErrTransientConn if it fails to get a hole punched connection, just like swarm.NewStream
host.Connect should also have the same behaviour.
The text was updated successfully, but these errors were encountered:
Currently there's an inconsistency between
swarm.NewStream
andswarm.DialPeer
.swarm.NewStream
returnsErrTransientConn
when no unlimited connection to the peer exists.swarm.DialPeer
returns the transient connection even when nonetwork.WithUseTransient
option is used.swarm.DialPeer
should wait for a direct connection when it only has a transient connection and returnErrTransientConn
if it fails to get a hole punched connection, just likeswarm.NewStream
host.Connect
should also have the same behaviour.The text was updated successfully, but these errors were encountered: