Skip to content

Commit 4e74da9

Browse files
committed
Update tunables
1 parent c144557 commit 4e74da9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/modules/ReplayModule.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define REPLAY_QUEUE_MASK 0x0F // Mask for wrapping the replay queue index
1414
#define REPLAY_QUEUE_SIZE (REPLAY_QUEUE_MASK + 1) // Size of the replay
1515
#define REPLAY_FLUSH_PACKETS 16 // Send an advertisement after at most this many packets
16-
#define REPLAY_FLUSH_SECS 15 // Send an advertisement after at most this many seconds (if unadvertised packets are pending)
16+
#define REPLAY_FLUSH_SECS 20 // Send an advertisement after at most this many seconds (if unadvertised packets are pending)
1717
#define REPLAY_STARTUP_DELAY_SECS 30 // Wait this many seconds after boot before sending the first advertisement
1818
#define REPLAY_ADVERT_MAX_PACKETS 64 // Advertise at most this many packets at a time
1919
#define REPLAY_CHUTIL_THRESHOLD_PCT 35 // If chutil is >= this, only advertise high-priority packets
@@ -22,16 +22,16 @@
2222
#define REPLAY_HEAP_RESERVE_PCT 5 // Don't prune the cache to below this much of the heap
2323
#define REPLAY_HEAP_FREE_MIN_PCT 10 // Prune packets if free heap is below this
2424
#define REPLAY_HEAP_FREE_TARGET_PCT 15 // Prune packets until free heap is above this
25-
#define REPLAY_SPACING_MS 500 // Spacing between replayed packets (TODO: scale based on radio settings)
25+
#define REPLAY_SPACING_MS 1000 // Spacing between replayed packets (TODO: scale based on radio settings)
2626
#define REPLAY_EXPIRED_SPACING_SECS 10 // Minimum spacing between advertisements of expired packets
2727
#define REPLAY_SEQUENCE_MASK 0x1F // Mask for wrapping advertisement sequence number
2828
#define REPLAY_TRACK_SERVERS 8 // Keep track of state for this many servers
2929
#define REPLAY_REQUEST_MAX_PACKETS 16 // Request at most this many packets at a time
3030
#define REPLAY_REQUEST_MAX_OUTSTANDING 32 // Keep track of this many outstanding requested packets
31-
#define REPLAY_REQUEST_TIMEOUT_SECS 30 // Consider a requested packet lost or unfilled after this many seconds
32-
#define REPLAY_SERVER_STALE_SECS 900 // Consider a server stale if we haven't heard from it in this many seconds
31+
#define REPLAY_REQUEST_TIMEOUT_SECS 45 // Consider a requested packet lost or unfilled after this many seconds
32+
#define REPLAY_SERVER_STALE_SECS 300 // Consider a server stale if we haven't heard from it in this many seconds
3333
#define REPLAY_CLIENT_BURST 16 // Allow at most this many replay requests per client in a burst
34-
#define REPLAY_CLIENT_RATE_MS 100 // Allow at most one replay request per client every this many milliseconds on average
34+
#define REPLAY_CLIENT_RATE_MS 1000 // Allow at most one replay request per client every this many milliseconds on average
3535
#define REPLAY_CLIENT_SIZE 128 // Track at most this many clients
3636
#define REPLAY_CLIENT_THROTTLE_ADVERT_MAX 64 // Advertise at most this many throttled clients at a time
3737

0 commit comments

Comments
 (0)