]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
conn: make StdNetBind.BatchSize() return 1 for non-Linux
authorJordan Whited <jordan@tailscale.com>
Thu, 9 Mar 2023 21:02:17 +0000 (13:02 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 10 Mar 2023 13:53:09 +0000 (14:53 +0100)
commitf41f47446684028b1529653a505c0538b56ac91f
tree76fb64b9468a3083cb52ee777863ea3f8f02f58f
parent5819c6af28239b973958a8d197f9e39926e7b9f1
conn: make StdNetBind.BatchSize() return 1 for non-Linux

This commit updates StdNetBind.BatchSize() to return 1 instead of
IdealBatchSize for non-Linux platforms. Non-Linux platforms do not
yet benefit from values > 1, which only serves to increase memory
consumption.

Reviewed-by: James Tucker <james@tailscale.com>
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
conn/bind_std.go