Skip to content

Commit

Permalink
Merge pull request #883 from anusha-ragunathan/set_default_timeout
Browse files Browse the repository at this point in the history
Set a non-zero timeout for HTTP client communication with plugin backend.
  • Loading branch information
cpuguy83 authored Feb 16, 2018
2 parents 847cc4b + f1e2030 commit a0044ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/plugin/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func newEnableCommand(dockerCli command.Cli) *cobra.Command {
}

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
}

Expand Down

0 comments on commit a0044ba

Please sign in to comment.