1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-12-23 21:02:01 +00:00

Increased heartbeat to 35s default

readsb expects to receive a heartbeat at 2x the —net-heartbeat interval otherwise it will disconnect the connection. By increasing the default to 2x35=70s it will gracefully handle heartbeats of 60s provided by external mlat-clients (FA, RB, etc)
This commit is contained in:
kx1t 2023-04-15 07:05:09 -04:00 committed by GitHub
parent a6f077fae2
commit aff75cfcca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ if [[ -n "$READSB_NET_CONNECTOR_DELAY" ]]; then
fi
# Handle "--net-heartbeat=<rate>"
MLATHUB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-30}")
MLATHUB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-35}")
if [[ ! -f /run/mlathub_up ]]
then
@ -123,4 +123,4 @@ elif [[ "${LOGLEVEL,,}" == "none" ]]; then
fi
echo "[$(date "+%Y-%m-%d %H:%M:%S")][mlathub] The mlathub instance has exited. Restarting in 10 seconds."
sleep 10
sleep 10