Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

fix: revert to try each #320

Merged
merged 3 commits into from
Apr 3, 2019
Merged

fix: revert to try each #320

merged 3 commits into from
Apr 3, 2019

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Apr 3, 2019

Race was opening multiple connections and not closing/canceling the unused ones.

Race was opening multiple connections and not closing/canceling the unused ones.

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@ghost ghost assigned alanshaw Apr 3, 2019
@ghost ghost added the in progress label Apr 3, 2019
@jacobheun
Copy link
Contributor

This should revert back to https://github.com/libp2p/js-libp2p-switch/blob/ddf622b784de1d3d376f9c429a49a84fbd660ca9/src/limit-dialer/index.js. Currently only the last error will be returned from the limit dialer, whereas https://github.com/libp2p/js-libp2p-switch/blob/ddf622b784de1d3d376f9c429a49a84fbd660ca9/src/limit-dialer/index.js will callback with all errors. This is helpful for diagnosing failed dials because you can see what went wrong with each dial, instead of just the last.

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@jacobheun jacobheun merged commit 805d1ad into master Apr 3, 2019
@jacobheun jacobheun deleted the fix/revert-to-tryEach branch April 3, 2019 15:15
@ghost ghost removed the in progress label Apr 3, 2019
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.

2 participants