mirror of https://github.com/docker/cli.git
Set a non-zero timeout for HTTP client communication with plugin
backend. Currently, the timeout is set to 0, which means no timeout. Set it to a sane default timeout of 30 seconds. Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com>
This commit is contained in:
parent
847cc4bdc0
commit
f1e2030ce8
|
@ -30,7 +30,7 @@ func newEnableCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.IntVar(&opts.timeout, "timeout", 0, "HTTP client timeout (in seconds)")
|
flags.IntVar(&opts.timeout, "timeout", 30, "HTTP client timeout (in seconds)")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue