diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-02-10 06:00:13 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-10 06:00:13 +0000 |
commit | 549583ee9f2782807cc4144e64ff7db5fdb71b71 (patch) | |
tree | a090ea049868b6c4a923bf025c94bf807831c853 /pkg/tcpip/transport | |
parent | d835625e374973f72e033e605aa1c3e0159aa850 (diff) | |
parent | 298c129cc151e197db35a927f9676cc40ec80d5c (diff) |
Merge release-20210201.0-72-g298c129cc (automated)
Diffstat (limited to 'pkg/tcpip/transport')
-rw-r--r-- | pkg/tcpip/transport/tcp/endpoint.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/tcpip/transport/tcp/endpoint.go b/pkg/tcpip/transport/tcp/endpoint.go index 4e5a6089f..8c5be0586 100644 --- a/pkg/tcpip/transport/tcp/endpoint.go +++ b/pkg/tcpip/transport/tcp/endpoint.go @@ -1698,11 +1698,7 @@ func (e *endpoint) OnCorkOptionSet(v bool) { } func (e *endpoint) getSendBufferSize() int { - sndBufSize, err := e.ops.GetSendBufferSize() - if err != nil { - panic(fmt.Sprintf("e.ops.GetSendBufferSize() = %s", err)) - } - return int(sndBufSize) + return int(e.ops.GetSendBufferSize()) } // SetSockOptInt sets a socket option. |