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

Feat: --ephemeral should use a non-default port solution #1124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KaydenML
Copy link
Contributor

@KaydenML KaydenML commented Jan 30, 2024

What was wrong?

Fixes: #919
If someone was using a default port and used --ephemeral twice in a row, or run ephemeral and then a non-ephemeral run. Because a bunch of former peers are contacting you on that port, expecting a different public key, your logs get flooded with warnings about incoming packets that can't be decoded

How was it fixed?

This code sets the discovery port. If in ephemeral mode with the default port, it generates a random port between 30000 and 60000 otherwise it uses the specified discovery port to avoid log flooding issues during consecutive ephemeral runs or mode switches.

@KaydenML KaydenML changed the title --ephemeral should use a non-default port solution Feat: --ephemeral should use a non-default port solution Jan 30, 2024
@KolbyML
Copy link
Member

KolbyML commented Mar 9, 2024

Do we want this or not? If not I am going to close this pr and the issue for it, I will give it a month or some amount of time which feels right.

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.

--ephemeral should use a non-default port
2 participants