diff options
author | Dean Deng <deandeng@google.com> | 2020-07-01 17:39:07 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-01 17:40:19 -0700 |
commit | 3b26d2121e3afbbc005b5e919000d55a235b4bbe (patch) | |
tree | d38c5319de6290cbdb8b1b457d91e4cdf30344a4 /pkg | |
parent | 65d99855583a21b6ea511ea74aa52318d0a1e5b2 (diff) |
Remove maxSendBufferSize from vfs2.
Complements cl/315991648.
PiperOrigin-RevId: 319327853
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/sentry/fsimpl/host/socket.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/sentry/fsimpl/host/socket.go b/pkg/sentry/fsimpl/host/socket.go index 38f1fbfba..fd16bd92d 100644 --- a/pkg/sentry/fsimpl/host/socket.go +++ b/pkg/sentry/fsimpl/host/socket.go @@ -47,11 +47,6 @@ func newEndpoint(ctx context.Context, hostFD int, queue *waiter.Queue) (transpor return ep, nil } -// maxSendBufferSize is the maximum host send buffer size allowed for endpoint. -// -// N.B. 8MB is the default maximum on Linux (2 * sysctl_wmem_max). -const maxSendBufferSize = 8 << 20 - // ConnectedEndpoint is an implementation of transport.ConnectedEndpoint and // transport.Receiver. It is backed by a host fd that was imported at sentry // startup. This fd is shared with a hostfs inode, which retains ownership of @@ -114,10 +109,6 @@ func (c *ConnectedEndpoint) init() *syserr.Error { if err != nil { return syserr.FromError(err) } - if sndbuf > maxSendBufferSize { - log.Warningf("Socket send buffer too large: %d", sndbuf) - return syserr.ErrInvalidEndpointState - } c.stype = linux.SockType(stype) c.sndbuf = int64(sndbuf) |