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:
Anusha Ragunathan 2018-02-16 12:00:58 -08:00
parent 847cc4bdc0
commit f1e2030ce8
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }