From 8d0b62974af4b296e50be5ff9aa4deb692485515 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 30 Nov 2019 22:40:13 +0800 Subject: [PATCH] chore: update default timeout to 10 minutes --- DOCS.md | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DOCS.md b/DOCS.md index e60cdbf..c379573 100644 --- a/DOCS.md +++ b/DOCS.md @@ -189,10 +189,10 @@ script_stop : stop script after first failure timeout -: Timeout is the maximum amount of time for the TCP connection to establish. +: Timeout is the maximum amount of time for the ssh connection to establish, default is 30 seconds. command_timeout -: Command timeout is the maximum amount of time for the execute commands, default is 60 secs. +: Command timeout is the maximum amount of time for the execute commands, default is 10 minutes. proxy_host : proxy hostname or IP diff --git a/main.go b/main.go index fd550bd..17ef606 100644 --- a/main.go +++ b/main.go @@ -80,7 +80,7 @@ func main() { Name: "command.timeout,T", Usage: "command timeout", EnvVar: "PLUGIN_COMMAND_TIMEOUT,SSH_COMMAND_TIMEOUT,COMMAND_TIMEOUT,INPUT_COMMAND_TIMEOUT", - Value: 60 * time.Second, + Value: 10 * time.Minute, }, cli.StringSliceFlag{ Name: "script,s",