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

fix: ignore dial request when one is in progress #283

Merged
merged 1 commit into from
Oct 23, 2018

Conversation

jacobheun
Copy link
Contributor

In the instance that multiple dials are requested for the same connection, this will ignore subsequent dials. In the future, we should revisit this logic for coalescing dials (a successful request with dials in the queue) and backoffs (a failure with dials in the queue). There is a limit dialer at the transport level, but we don't currently handle it at the connection level.

This issue was exposed when testing the libp2p 0.24.0-rc.1 candidate release against the js-ipfs tests.

@ghost ghost assigned jacobheun Oct 23, 2018
@ghost ghost added the in progress label Oct 23, 2018
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jacobheun jacobheun merged commit 280d54f into master Oct 23, 2018
@jacobheun jacobheun deleted the fix/concurrent-dials branch October 23, 2018 16:52
@ghost ghost removed the in progress label Oct 23, 2018
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