Skip to content

Log all changes to magicSock best addr #27

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

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Conversation

spikecurtis
Copy link

tailscale logs when UDP routes are set, but not when they are unset, so I've added logs to cover all the places bestAddr changes. c.f. coder/coder#7962

I've also removed the logs dropped in setPeerLastDerpLocked because they are spammy and not useful.

Once upon a time it was the case that magicsock communicated with a peer exclusively via a single DERP region, but they later added various optimizations that mean that the magicsock sends DERP messages both via its home DERP and the peer's home DERP. If these are different regions, we get a ton of logs every time it switches.

Signed-off-by: Spike Curtis <spike@coder.com>
@spikecurtis spikecurtis requested review from mafredri and mtojek June 30, 2023 07:50
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM

@spikecurtis spikecurtis merged commit 9692163 into main Jun 30, 2023
@spikecurtis spikecurtis deleted the spike/magicsock-logging branch August 15, 2023 11:30
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