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
This commit is contained in:
Bernhard B
2021-07-29 20:55:28 +02:00
parent 2bd578759b
commit 719d8d6400

View File

@@ -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...)