Boosted mosquitto timeout so it works well even on a slow RPi

This commit is contained in:
kexkey
2019-06-21 14:09:41 -04:00
parent fadd9ae886
commit e880d47cb4

View File

@@ -100,7 +100,7 @@ checknotifier() {
local response
local returncode
response=$(mosquitto_rr -h broker -W 5 -t notifier -e "response/$$" -m "{\"response-topic\":\"response/$$\",\"cmd\":\"web\",\"url\":\"http://proxy:8888/getbestblockhash\"}")
response=$(mosquitto_rr -h broker -W 15 -t notifier -e "response/$$" -m "{\"response-topic\":\"response/$$\",\"cmd\":\"web\",\"url\":\"http://proxy:8888/getbestblockhash\"}")
returncode=$?
[ "${returncode}" -ne "0" ] && return 115
http_code=$(echo "${response}" | jq ".http_code" | tr -d '"')