tailscale/tailscale

magicsock_unix_test fails when the machine already has higher buffer sizes

開放

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

 (5 則留言) (0 個反應) (0 位負責人)Go (2,554 個分叉)batch import
OS-linuxbuggood first issue

倉庫指標

星標
 (31,565 顆星)
PR 合併指標
 (平均合併 5天 22小時) (30 天內合併 173 個 PR)

描述

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

貢獻者指南