Raise Muninn RUDP repair budget for LAN streams
This commit is contained in:
parent
c298f8a49d
commit
07b366faa2
1 changed files with 10 additions and 10 deletions
|
|
@ -68,11 +68,11 @@ const MUNINN_RUDP_MEDIA_RESEND_DELAY_MS: u64 = 5;
|
|||
const MUNINN_RUDP_MEDIA_RECEIVER_ASSEMBLY_DEADLINE_MS: u64 = 1_200;
|
||||
const MUNINN_RUDP_MEDIA_RECEIVER_GAP_WAIT_MS: u64 = 16;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_CACHE_CHUNKS: usize = 16_384;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_BURST_CHUNKS: usize = 512;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_INITIAL_CHUNKS_PER_SECOND: usize = 512;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_BURST_CHUNKS: usize = 1_024;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_INITIAL_CHUNKS_PER_SECOND: usize = 1_024;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_MIN_CHUNKS_PER_SECOND: usize = 8;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_MAX_CHUNKS_PER_SECOND: usize = 4_096;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_ADD_CHUNKS_PER_SECOND: usize = 256;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_MAX_CHUNKS_PER_SECOND: usize = 6_144;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_ADD_CHUNKS_PER_SECOND: usize = 512;
|
||||
const MUNINN_RUDP_MEDIA_REPAIR_RECOVERY_INTERVAL_MS: u64 = 2_000;
|
||||
const MUNINN_RUDP_MEDIA_SOCKET_BUFFER_BYTES: usize = 4 * 1024 * 1024;
|
||||
const MUNINN_RUDP_MEDIA_SEND_PACE_EVERY_PAYLOADS: usize = 16;
|
||||
|
|
@ -7248,13 +7248,13 @@ mod tests {
|
|||
);
|
||||
let start = budget.last_refill_at;
|
||||
|
||||
assert_eq!(budget.chunks_per_second(), 512);
|
||||
assert_eq!(budget.take(512, start, 0), 512);
|
||||
assert_eq!(budget.take(4_096, start + Duration::from_secs(1), 0), 512);
|
||||
assert_eq!(budget.take(4_096, start + Duration::from_secs(3), 0), 512);
|
||||
assert_eq!(budget.chunks_per_second(), 1_024);
|
||||
assert_eq!(budget.take(1_024, start, 0), 1_024);
|
||||
assert_eq!(budget.take(8_192, start + Duration::from_secs(1), 0), 1_024);
|
||||
assert_eq!(budget.take(8_192, start + Duration::from_secs(3), 0), 1_024);
|
||||
assert_eq!(budget.chunks_per_second(), 1_536);
|
||||
assert_eq!(budget.take(512, start + Duration::from_secs(4), 1), 512);
|
||||
assert_eq!(budget.chunks_per_second(), 768);
|
||||
assert_eq!(budget.take(512, start + Duration::from_secs(4), 1), 384);
|
||||
assert_eq!(budget.chunks_per_second(), 384);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue