diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-11 22:19:40 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-11 22:19:40 +0000 |
commit | 8b57622c9750e1b4c2b78950749704cf890e6eda (patch) | |
tree | d57ce591cec466d07c45ae2a117ca0bed6d7905b /pkg/tcpip/transport | |
parent | 6fe396ec20bfeeccea352f712c8844de2db836e5 (diff) | |
parent | 773071680021a2fb985f3a3af7e9f65cdc1bd1ed (diff) |
Merge release-20190806.1-389-g7730716 (automated)
Diffstat (limited to 'pkg/tcpip/transport')
-rw-r--r-- | pkg/tcpip/transport/tcp/accept.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/accept.go b/pkg/tcpip/transport/tcp/accept.go index 0e8e0a2b4..f24b51b91 100644 --- a/pkg/tcpip/transport/tcp/accept.go +++ b/pkg/tcpip/transport/tcp/accept.go @@ -300,6 +300,7 @@ func (l *listenContext) createEndpointAndPerformHandshake(s *segment, opts *head ep.mu.Lock() ep.stack.Stats().TCP.CurrentEstablished.Increment() ep.state = StateEstablished + ep.isConnectNotified = true ep.mu.Unlock() // Update the receive window scaling. We can't do it before the @@ -539,6 +540,7 @@ func (e *endpoint) handleListenSegment(ctx *listenContext, s *segment) { // Switch state to connected. n.stack.Stats().TCP.CurrentEstablished.Increment() n.state = StateEstablished + n.isConnectNotified = true // Do the delivery in a separate goroutine so // that we don't block the listen loop in case |