diff options
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r-- | cli/src/cli.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index fbf3e89fb78..dfacd4bee0c 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -360,6 +360,11 @@ cli_opt_parse (char *opt, struct cli_state *state) state->log_file = oarg; return 0; } + oarg = strtail (opt, "timeout="); + if (oarg) { + cli_default_conn_timeout = atoi(oarg); + return 0; + } oarg = strtail (opt, "log-level="); if (oarg) { @@ -702,6 +707,9 @@ main (int argc, char *argv[]) if (ret) goto out; + cli_default_conn_timeout = 120; + cli_ten_minutes_timeout = 600; + ret = cli_state_init (&state); if (ret) goto out; |