Skip to content

Commit

Permalink
Reduce default network flush time
Browse files Browse the repository at this point in the history
The dump1090 network outputs don't offer timing guarantees or real-time
timestamps, but it is still useful for aggregators to locally timestamp
messages they receive from dump1090 on a best-effort basis.
With lower message rates, 500 ms of flush interval can result in
significant jitter for those timestamps.
Most installs send data only on the local network or non-metered
internet connections.
If necessary this default can be adjusted via --net-ro-interval by users
who require a longer flush interval for some reason.

Reduce the default flush time to 90 ms to reliably flush every 2nd
demodulation buffer when talking to an SDR (50 ms loop) and every loop
iteration when running network-only (100 ms loop).

fixes: flightaware#244
  • Loading branch information
wiedehopf committed Jul 11, 2024
1 parent eb08fd7 commit cbb27c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static void modesInitConfig(void) {

Modes.net_heartbeat_interval = MODES_NET_HEARTBEAT_INTERVAL;
Modes.net_output_flush_size = 1300;
Modes.net_output_flush_interval = 500;
Modes.net_output_flush_interval = 90;

// adaptive
Modes.adaptive_min_gain_db = 0;
Expand Down

0 comments on commit cbb27c7

Please sign in to comment.