tailscale/tailscale

magicsock_unix_test fails when the machine already has higher buffer sizes

Open

#15,994 建立於 2025年5月16日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)Go (31,565 star) (2,554 fork)batch import
OS-linuxbuggood first issueneeds-triage

描述

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

貢獻者指南

magicsock_unix_test fails when the machine already has higher buffer sizes · tailscale/tailscale#15994 | Good First Issue