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

TCP: Don't connect to or log invalid peers #2097

Conversation

cryptocode
Copy link
Contributor

@cryptocode cryptocode commented Jun 18, 2019

My log had a lot of Disconnecting from 0.0.0.0... messages. Turns out it's logging as timeout when remote has already closed, thus the endpoint is invalidated. Also prevents connecting to the default endpoint (0.0.0.0:0), which bootstrap_peer returns if there isn't a suitable channel.

@cryptocode cryptocode added this to the V19.0 milestone Jun 18, 2019
@cryptocode cryptocode requested a review from SergiySW June 18, 2019 17:12
@cryptocode cryptocode self-assigned this Jun 18, 2019
Copy link
Contributor

@SergiySW SergiySW left a comment

Choose a reason for hiding this comment

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

LGTM

@cryptocode cryptocode merged commit 22ad4a7 into nanocurrency:master Jun 18, 2019
@cryptocode cryptocode deleted the tcp/no_default_connect_and_log_filtering branch June 18, 2019 19:33
argakiig pushed a commit that referenced this pull request Jun 27, 2019
* Don't connect to or log invalid peers

* Flip terms to improve performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants