From 719d8d640003c7172c405f0442b385c2570a4283 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Thu, 29 Jul 2021 20:55:28 +0200 Subject: [PATCH] increased default command timeout to 120 seconds * libsignal-client performs really bad on armv7 now, so increase the default command timeout to 120 seconds to make it somehow useable on armv7. see #145 --- src/api/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/api.go b/src/api/api.go index 0843ce5..d88587e 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -355,10 +355,10 @@ func runSignalCli(wait bool, args []string, stdin string) (string, error) { log.Debug("*) su signal-api") log.Debug("*) ", fullCmd) - cmdTimeout, err := utils.GetIntEnv("SIGNAL_CLI_CMD_TIMEOUT", 60) + cmdTimeout, err := utils.GetIntEnv("SIGNAL_CLI_CMD_TIMEOUT", 120) if err != nil { - log.Error("Env variable 'SIGNAL_CLI_CMD_TIMEOUT' contains an invalid timeout...falling back to default timeout (60 seconds)") - cmdTimeout = 60 + log.Error("Env variable 'SIGNAL_CLI_CMD_TIMEOUT' contains an invalid timeout...falling back to default timeout (120 seconds)") + cmdTimeout = 120 } cmd := exec.Command(signalCliBinary, args...)