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

wgpeerselector: expect actual traffic flow #253

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CodeFetch
Copy link

@CodeFetch CodeFetch commented Jan 13, 2022

NOTE: We are still examining the situation. Please don't merge! This PR is only meant for discussion purposes atm.

Situations may happen in which handshakes are being received, but no actual traffic flows.
This commit adds checks on whether the tx/rx byte values have changed.
If not the connection is handled as being broken.

Another issue is that it takes up to 150 seconds for a node to recognize a broken connection as WireGuard only sends handshakes every two minutes. This can only be mitigated by checking if the received bytes value changed.

Situations may happen in which handshakes are being received, but no actual traffic flows.
This commit adds checks on whether the tx/rx byte values have changed.
If not the connection is handled as being broken.
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