summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/endpoint.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-06 17:55:04 -0800
committergVisor bot <gvisor-bot@google.com>2019-11-06 17:56:25 -0800
commitadb10f4d53cb951c7329e1355a784345ceea4b62 (patch)
treede1ebd990c19fc3c47f98e6f8f9a25eff1fa9b09 /pkg/tcpip/transport/tcp/endpoint.go
parentf8ffadddb39e132605f0ef3e3d39e5d7ad6e0ecf (diff)
Internal change.
PiperOrigin-RevId: 278979065
Diffstat (limited to 'pkg/tcpip/transport/tcp/endpoint.go')
-rw-r--r--pkg/tcpip/transport/tcp/endpoint.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/endpoint.go b/pkg/tcpip/transport/tcp/endpoint.go
index e31464c9b..d29f0f81b 100644
--- a/pkg/tcpip/transport/tcp/endpoint.go
+++ b/pkg/tcpip/transport/tcp/endpoint.go
@@ -594,6 +594,11 @@ func newEndpoint(s *stack.Stack, netProto tcpip.NetworkProtocolNumber, waiterQue
e.rcvAutoParams.disabled = !bool(mrb)
}
+ var de DelayEnabled
+ if err := s.TransportProtocolOption(ProtocolNumber, &de); err == nil && de {
+ e.SetSockOptInt(tcpip.DelayOption, 1)
+ }
+
if p := s.GetTCPProbe(); p != nil {
e.probe = p
}