We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a5723 commit 6c03522Copy full SHA for 6c03522
iroh/src/magicsock.rs
@@ -446,11 +446,20 @@ impl MagicSock {
446
let conn = conn.clone();
447
let addr = *addr;
448
task::spawn(async move {
449
- if let Err(err) = conn
+ match conn
450
.open_path(addr, quinn_proto::PathStatus::Available)
451
.await
452
{
453
- warn!("failed to open path {:?}", err);
+ Ok(path) => {
454
+ path.set_max_idle_timeout(Some(
455
+ ENDPOINTS_FRESH_ENOUGH_DURATION,
456
+ ))
457
+ .ok();
458
+ path.set_keep_alive_interval(Some(HEARTBEAT_INTERVAL)).ok();
459
+ }
460
+ Err(err) => {
461
+ warn!("failed to open path {:?}", err);
462
463
}
464
});
465
0 commit comments