diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-14 14:40:04 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-14 14:40:04 +0000 |
commit | 85a78a701013fbbee9f2de38884b6816ba62eee3 (patch) | |
tree | 0ce521dfebf5bbdf5a888db5d5180dda8ede8715 /runsc | |
parent | 4f2b24601d90d855aab81e2a2f46b24006e9e6a1 (diff) | |
parent | a8608c501b23f89ac3df50cde7428cb3c4b56145 (diff) |
Merge a8608c50 (automated)
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/boot/loader.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go index 53e61e43d..41027416d 100644 --- a/runsc/boot/loader.go +++ b/runsc/boot/loader.go @@ -847,9 +847,17 @@ func newEmptyNetworkStack(conf *Config, clock tcpip.Clock) (inet.Stack, error) { // privileges. Raw: true, })} + + // Enable SACK Recovery. if err := s.Stack.SetTransportProtocolOption(tcp.ProtocolNumber, tcp.SACKEnabled(true)); err != nil { return nil, fmt.Errorf("failed to enable SACK: %v", err) } + + // Enable Receive Buffer Auto-Tuning. + if err := s.Stack.SetTransportProtocolOption(tcp.ProtocolNumber, tcpip.ModerateReceiveBufferOption(true)); err != nil { + return nil, fmt.Errorf("SetTransportProtocolOption failed: %v", err) + } + return &s, nil default: |