|
13 | 13 | #define REPLAY_QUEUE_MASK 0x0F // Mask for wrapping the replay queue index |
14 | 14 | #define REPLAY_QUEUE_SIZE (REPLAY_QUEUE_MASK + 1) // Size of the replay |
15 | 15 | #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) |
17 | 17 | #define REPLAY_STARTUP_DELAY_SECS 30 // Wait this many seconds after boot before sending the first advertisement |
18 | 18 | #define REPLAY_ADVERT_MAX_PACKETS 64 // Advertise at most this many packets at a time |
19 | 19 | #define REPLAY_CHUTIL_THRESHOLD_PCT 35 // If chutil is >= this, only advertise high-priority packets |
|
22 | 22 | #define REPLAY_HEAP_RESERVE_PCT 5 // Don't prune the cache to below this much of the heap |
23 | 23 | #define REPLAY_HEAP_FREE_MIN_PCT 10 // Prune packets if free heap is below this |
24 | 24 | #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) |
26 | 26 | #define REPLAY_EXPIRED_SPACING_SECS 10 // Minimum spacing between advertisements of expired packets |
27 | 27 | #define REPLAY_SEQUENCE_MASK 0x1F // Mask for wrapping advertisement sequence number |
28 | 28 | #define REPLAY_TRACK_SERVERS 8 // Keep track of state for this many servers |
29 | 29 | #define REPLAY_REQUEST_MAX_PACKETS 16 // Request at most this many packets at a time |
30 | 30 | #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 |
33 | 33 | #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 |
35 | 35 | #define REPLAY_CLIENT_SIZE 128 // Track at most this many clients |
36 | 36 | #define REPLAY_CLIENT_THROTTLE_ADVERT_MAX 64 // Advertise at most this many throttled clients at a time |
37 | 37 |
|
|
0 commit comments