diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-08-08 10:24:53 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-08 10:26:18 -0700 |
commit | 0d350aac7f70487bc28bae0d0f457155a4e19081 (patch) | |
tree | e4397f3cb6e28045f57ca3eacf4c873331f50328 /runsc/boot/controller.go | |
parent | cb23232c37c092b60d7e3ee91cb8dd8bed855028 (diff) |
Enable SACK in runsc
SACK is disabled by default and needs to be manually enabled. It not only
improves performance, but also fixes hangs downloading files from certain
websites.
PiperOrigin-RevId: 207906742
Change-Id: I4fb7277b67bfdf83ac8195f1b9c38265a0d51e8b
Diffstat (limited to 'runsc/boot/controller.go')
-rw-r--r-- | runsc/boot/controller.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runsc/boot/controller.go b/runsc/boot/controller.go index c6e934e66..fc6ea326a 100644 --- a/runsc/boot/controller.go +++ b/runsc/boot/controller.go @@ -285,7 +285,10 @@ func (cm *containerManager) Restore(o *RestoreOpts, _ *struct{}) error { fs.SetRestoreEnvironment(*renv) // Prepare to load from the state file. - networkStack := newEmptyNetworkStack(cm.l.conf, k) + networkStack, err := newEmptyNetworkStack(cm.l.conf, k) + if err != nil { + return fmt.Errorf("failed to create network: %v", err) + } info, err := o.FilePayload.Files[0].Stat() if err != nil { return err |