bidirectional ip reflection for listener address discovery

This commit is contained in:
2026-02-09 16:02:23 -03:00
parent 59e9e420be
commit 7b47ef155c
31 changed files with 3192 additions and 269 deletions

View File

@@ -16,8 +16,9 @@ pub const Defaults = struct {
/// Time to live for publications (seconds)
pub const publication_ttl: u32 = 300; // 5 minutes
/// Buffer time after seeing peer's publication (milliseconds)
pub const rendezvous_buffer_ms: i64 = 500;
/// Buffer time after publication timestamp for rendezvous (milliseconds)
/// Must be long enough for both peers to find each other's publications
pub const rendezvous_buffer_ms: i64 = 5000; // 5 seconds
/// Timeout waiting for peer's publication (milliseconds)
pub const discovery_timeout_ms: u64 = 30_000; // 30 seconds