summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/accept.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-27 22:19:28 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-27 22:19:28 +0000
commit39007ac80a34a18aefb285fb10b285706dd320c5 (patch)
tree302fbc1981133094ec78f0625ed0605ff7e344f5 /pkg/tcpip/transport/tcp/accept.go
parentd28077cca02f4b9dd58f8d3930a614b8b0f5e757 (diff)
parentc6bdc6b05b4abfcb3c677013496c9a6b1d1365dd (diff)
Merge release-20200219.0-58-gc6bdc6b (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/accept.go')
-rw-r--r--pkg/tcpip/transport/tcp/accept.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/accept.go b/pkg/tcpip/transport/tcp/accept.go
index 13e383ffc..85049e54e 100644
--- a/pkg/tcpip/transport/tcp/accept.go
+++ b/pkg/tcpip/transport/tcp/accept.go
@@ -236,6 +236,7 @@ func (l *listenContext) createConnectingEndpoint(s *segment, iss seqnum.Value, i
n.effectiveNetProtos = []tcpip.NetworkProtocolNumber{s.route.NetProto}
n.rcvBufSize = int(l.rcvWnd)
n.amss = mssForRoute(&n.route)
+ n.setEndpointState(StateConnecting)
n.maybeEnableTimestamp(rcvdSynOpts)
n.maybeEnableSACKPermitted(rcvdSynOpts)