From aff75cfccaaa7526709af448b7c3ba5f1343926c Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Sat, 15 Apr 2023 07:05:09 -0400 Subject: [PATCH] Increased heartbeat to 35s default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- rootfs/etc/services.d/mlathub/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/services.d/mlathub/run b/rootfs/etc/services.d/mlathub/run index 871ff94..5c5a47b 100644 --- a/rootfs/etc/services.d/mlathub/run +++ b/rootfs/etc/services.d/mlathub/run @@ -97,7 +97,7 @@ if [[ -n "$READSB_NET_CONNECTOR_DELAY" ]]; then fi # Handle "--net-heartbeat=" -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 \ No newline at end of file +sleep 10