Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Use NoDial option when opening hop streams for non-active relays #70

Merged
merged 3 commits into from
Apr 10, 2019

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Apr 10, 2019

It turns out that the relays are doing dialing on NewStream in the wild, presumably because they still have dead connections.
This uses the new NoDial option to instruct the swarm to not dial the hop target instead of explicitly checking for open connections and is robust to failed connections.

It turns out that the relays are doing dialing on NewStream in the wild,
presumably because they still have dead connections.
This uses the new NoDial option to instruct the swarm to not dial the hop target
instead of explicitly checking for open connections and is robust to failed
connections.
@ghost ghost assigned vyzo Apr 10, 2019
@ghost ghost added the status/in-progress In progress label Apr 10, 2019
@vyzo vyzo requested a review from Stebalien April 10, 2019 19:42
@vyzo
Copy link
Contributor Author

vyzo commented Apr 10, 2019

gx build failures are to be expected...

@vyzo
Copy link
Contributor Author

vyzo commented Apr 10, 2019

@Stebalien LGTM'ed over slack, as he is on mobile, so merging.

@vyzo vyzo merged commit d3284fe into master Apr 10, 2019
@ghost ghost removed the status/in-progress In progress label Apr 10, 2019
@vyzo vyzo deleted the feat/no-dial-option branch April 10, 2019 20:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant