tailscale/tailscale

magicsock_unix_test fails when the machine already has higher buffer sizes

Aperta

#15.994 aperta il 16 mag 2025

 (5 commenti) (0 reazioni) (0 assegnatari)Go (2554 fork)batch import
OS-linuxbuggood first issue

Metriche repository

Star
 (31.565 stelle)
Metriche merge PR
 (Merge medio 5g 22h) (173 PR mergiate in 30 g)

Descrizione

What is the issue?

https://github.com/tailscale/tailscale/blob/9c52856af62074e51f125a90b4153fab61a13b00/wgengine/magicsock/magicsock_unix_test.go#L43-L47

The test applies the buffer size setting, and then checks that the buffer size goes up. If building Tailscale on a machine where the buffer size is already set higher than the Tailscale defaults, the buffer size doesn't go up - it goes down. The test then, obviously, fails.

Steps to reproduce

sysctl -w net.core.wmem_default=16777216, then build Tailscale

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

NixOS unstable

Tailscale version

1.82.5

Other software

No response

Bug report

No response

Guida contributor