diff options
author | 2023-03-04 15:25:46 +0100 | |
---|---|---|
committer | 2023-03-10 14:52:22 +0100 | |
commit | dbd949307e75bbd72d86e53aa57b74b20daab04d (patch) | |
tree | 2dac596a5125edc3a4149e37cd5a694b443c5a3c /tun/tcp_offload_linux_test.go | |
parent | conn: set SO_{SND,RCV}BUF to 7MB on the Bind UDP socket (diff) | |
download | wireguard-go-dbd949307e75bbd72d86e53aa57b74b20daab04d.tar.xz wireguard-go-dbd949307e75bbd72d86e53aa57b74b20daab04d.zip |
conn: inch BatchSize toward being non-dynamic
There's not really a use at the moment for making this configurable, and
once bind_windows.go behaves like bind_std.go, we'll be able to use
constants everywhere. So begin that simplification now.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/tcp_offload_linux_test.go')
-rw-r--r-- | tun/tcp_offload_linux_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/tcp_offload_linux_test.go b/tun/tcp_offload_linux_test.go index 7fa0777..11f9e53 100644 --- a/tun/tcp_offload_linux_test.go +++ b/tun/tcp_offload_linux_test.go @@ -125,8 +125,8 @@ func Test_handleVirtioRead(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - out := make([][]byte, conn.DefaultBatchSize) - sizes := make([]int, conn.DefaultBatchSize) + out := make([][]byte, conn.IdealBatchSize) + sizes := make([]int, conn.IdealBatchSize) for i := range out { out[i] = make([]byte, 65535) } |