mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
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:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user