diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-03-04 15:25:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-03-10 14:52:22 +0100 |
commit | dbd949307e75bbd72d86e53aa57b74b20daab04d (patch) | |
tree | 2dac596a5125edc3a4149e37cd5a694b443c5a3c /conn/conn.go | |
parent | f26efb65f23acbd88785d1ae793fa3264c999673 (diff) |
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 'conn/conn.go')
-rw-r--r-- | conn/conn.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conn/conn.go b/conn/conn.go index 9cbd0af..a9c70b5 100644 --- a/conn/conn.go +++ b/conn/conn.go @@ -16,7 +16,7 @@ import ( ) const ( - DefaultBatchSize = 128 // maximum number of packets handled per read and write + IdealBatchSize = 128 // maximum number of packets handled per read and write ) // A ReceiveFunc receives at least one packet from the network and writes them |