From f4b74218202c8f318c603c57aa35895554194d98 Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Mon, 15 Mar 2021 20:09:37 -0700 Subject: Move `MaxIovs` back to a variable in `iovec.go`. PiperOrigin-RevId: 363091954 --- pkg/iovec/iovec.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/iovec/iovec.go') diff --git a/pkg/iovec/iovec.go b/pkg/iovec/iovec.go index f6791060f..a281c05b6 100644 --- a/pkg/iovec/iovec.go +++ b/pkg/iovec/iovec.go @@ -22,6 +22,9 @@ import ( "golang.org/x/sys/unix" ) +// MaxIovs is the maximum number of iovecs host platform can accept. +var MaxIovs = 1024 + // Builder is a builder for slice of unix.Iovec. type Builder struct { iovec []unix.Iovec -- cgit v1.2.3