summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-02-10 06:00:13 +0000
committergVisor bot <gvisor-bot@google.com>2021-02-10 06:00:13 +0000
commit549583ee9f2782807cc4144e64ff7db5fdb71b71 (patch)
treea090ea049868b6c4a923bf025c94bf807831c853 /pkg/tcpip/transport
parentd835625e374973f72e033e605aa1c3e0159aa850 (diff)
parent298c129cc151e197db35a927f9676cc40ec80d5c (diff)
Merge release-20210201.0-72-g298c129cc (automated)
Diffstat (limited to 'pkg/tcpip/transport')
-rw-r--r--pkg/tcpip/transport/tcp/endpoint.go6
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.