Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comms): dial if connection is not connected #5223

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 7, 2023

Description

Fix bug where recently disconnected connections do not get redialled

Motivation and Context

The connectivity manager pool maintains a list of connections including recently disconnected. These are cleared out periodically. The connectivity manager should not return disconnected connections to the caller.

How Has This Been Tested?

Manually: Connection is dialled when pool says the connection is not connected.

stringhandler
stringhandler previously approved these changes Mar 7, 2023
Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

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

lol so that's how that works.

@stringhandler
Copy link
Collaborator

I changed it because it seemed to be a mistake. Perhaps a comment on the reasoning will prevent someone doing the same

@sdbondi
Copy link
Member Author

sdbondi commented Mar 7, 2023

There is no reason really at the moment. We could just remove disconnected connections. The thinking all those years ago (which could still apply) is you could have a UI that refreshes, showing recently disconnected/failed to dial connections. Currently we only have list-connections which only shows connected connections.

stringhandler
stringhandler previously approved these changes Mar 7, 2023
@stringhandler stringhandler merged commit 0a060b6 into tari-project:development Mar 8, 2023
@sdbondi sdbondi deleted the comms-fix-not-dialing branch March 8, 2023 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants