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

Ban peer after disconnect #1358

Merged
merged 4 commits into from
Nov 18, 2023
Merged

Ban peer after disconnect #1358

merged 4 commits into from
Nov 18, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Nov 18, 2023

We currently don't ban peers when we fail to connect to them, leading to smoldot trying over and over again to connect to the same address.

Work in progress, because I need the changes in #1357

@tomaka tomaka marked this pull request as ready for review November 18, 2023 12:34
@tomaka tomaka marked this pull request as draft November 18, 2023 12:36
@tomaka
Copy link
Contributor Author

tomaka commented Nov 18, 2023

The logic of this is actually a bit weird, because there's a phase where peers are in unconnected_desired() even though no Disconnected event has been generated.

@tomaka tomaka marked this pull request as ready for review November 18, 2023 16:33
@tomaka tomaka added this pull request to the merge queue Nov 18, 2023
Merged via the queue into smol-dot:main with commit 9502607 Nov 18, 2023
22 checks passed
@tomaka tomaka deleted the ban-after-shutdown branch November 18, 2023 17:03
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.

1 participant