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

don't discard netlink messages for previously seen addresses #7737

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

ssiloti
Copy link
Collaborator

@ssiloti ssiloti commented Sep 29, 2024

Addresses can come and go. Supressing notifications for previously seen addresses can cause the client to miss when the address is re-added. New address notifications also don't necessarily include an IFA_LOCAL attribute so don't filter on that either. Note that notifications don't cause all listen sockets to be closed and re-opened. Despite its name reopen_listen_sockets only closes/opens sockets as necessary to synchronize with the list of addresses enumerated from the OS.

Addresses can come and go. Supressing notifications for previously seen addresses
can cause the client to miss when the address is re-added. New address
notifications also don't necessarily include an IFA_LOCAL attribute so don't
filter on that either. Note that notifications don't cause all listen sockets
to be closed and re-opened. Despite its name reopen_listen_sockets only
closes/opens sockets as necessary to synchronize with the list of addresses
enumerated from the OS.
@ssiloti
Copy link
Collaborator Author

ssiloti commented Sep 29, 2024

For a while I've noticed that sometimes when my machine reboots the torrent client doesn't listen on IPv6. Restarting the client always fixes it so I suspected it had to do with address change notifications. I finally got around to investigating and found that all of the netlink notifications were being ignored due to these checks.

@arvidn arvidn merged commit 685a104 into arvidn:RC_2_0 Sep 30, 2024
42 checks passed
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