mirror of
https://github.com/craigerl/aprsd.git
synced 2026-04-01 04:35:39 -04:00
Add a new 'stale_timeout' configuration option to the aprs_network config group that allows users to customize how long to wait before considering an APRS-IS connection stale. Problem: The stale connection threshold was hardcoded to 2 minutes. In environments with frequent network hiccups or when using certain APRS-IS servers that may drop connections silently, 2 minutes can be too long to wait before reconnecting, resulting in significant data loss. Solution: - Add 'stale_timeout' option to aprsd/conf/client.py with default of 120s - Update APRSISDriver.__init__ to use the config value - Maintain backward compatibility by defaulting to 120s if not configured - Update tests to handle the new configuration option Usage: [aprs_network] stale_timeout = 60 # Reconnect after 60 seconds without data The default remains 120 seconds (2 minutes) for backward compatibility.