diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-09-07 21:13:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-07 21:13:21 +0000 |
commit | db19310daedbb72974dabd2dedada425231c13ff (patch) | |
tree | 7c368c581748da49935bda6b3dcd8a3e807c596b /pkg | |
parent | 0d58674c658a7f7c119d8d4e2c4e9bf2999a7b9b (diff) | |
parent | dfc518005bf9fd6abdc8dc906d7572f6cc2c5a35 (diff) |
Merge release-20210830.0-24-gdfc518005 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tcpip/transport/tcp/connect.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pkg/tcpip/transport/tcp/connect.go b/pkg/tcpip/transport/tcp/connect.go index f331655fc..5d8e18484 100644 --- a/pkg/tcpip/transport/tcp/connect.go +++ b/pkg/tcpip/transport/tcp/connect.go @@ -1342,7 +1342,7 @@ func (e *endpoint) protocolMainLoopDone(closeTimer tcpip.Timer) { // protocolMainLoop is the main loop of the TCP protocol. It runs in its own // goroutine and is responsible for sending segments and handling received // segments. -func (e *endpoint) protocolMainLoop(handshake bool, wakerInitDone chan<- struct{}) tcpip.Error { +func (e *endpoint) protocolMainLoop(handshake bool, wakerInitDone chan<- struct{}) { var ( closeTimer tcpip.Timer closeWaker sleep.Waker @@ -1360,7 +1360,7 @@ func (e *endpoint) protocolMainLoop(handshake bool, wakerInitDone chan<- struct{ e.workerCleanup = true e.protocolMainLoopDone(closeTimer) - return err + return } } @@ -1588,7 +1588,7 @@ loop: // endpoint. cleanupOnError(nil) e.protocolMainLoopDone(closeTimer) - return nil + return case StateTimeWait: fallthrough case StateClose: @@ -1597,7 +1597,7 @@ loop: if err := funcs[v].f(); err != nil { cleanupOnError(err) e.protocolMainLoopDone(closeTimer) - return nil + return } } } @@ -1621,7 +1621,7 @@ loop: if e.EndpointState() == StateError { cleanupOnError(nil) e.protocolMainLoopDone(closeTimer) - return nil + return } e.transitionToStateCloseLocked() @@ -1633,8 +1633,6 @@ loop: if reuseTW != nil { reuseTW() } - - return nil } // handleTimeWaitSegments processes segments received during TIME_WAIT |