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
While BasicHost.Connect will resolve DNS addresses, BasicHost.NewStreamwill try to establish a connection if one doesn't already exist, but it won't try to resolve DNS addresses.
The real issue here is that network.NewStream tries to automatically connect to a peer, but has no way to find/resolve addresses for that peer.
The text was updated successfully, but these errors were encountered:
BasicHost.NewStream will try to establish a connection if one doesn't already exist. This will fail if the hosts addresses have not yet been resolved. This PR resolves the hosts addresses before creating the stream and possible new connection.
Fixes#1302
* Resolve addresses when creating a new stream
BasicHost.NewStream will try to establish a connection if one doesn't already exist. This will fail if the hosts addresses have not yet been resolved. This PR resolves the hosts addresses before creating the stream and possible new connection.
Fixes#1302
* Changes from review comments
While
BasicHost.Connect
will resolve DNS addresses,BasicHost.NewStream
will try to establish a connection if one doesn't already exist, but it won't try to resolve DNS addresses.The real issue here is that
network.NewStream
tries to automatically connect to a peer, but has no way to find/resolve addresses for that peer.The text was updated successfully, but these errors were encountered: