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 d601179 commit 182f78cCopy full SHA for 182f78c
iroh/src/magicsock.rs
@@ -468,16 +468,11 @@ impl MagicSock {
468
let conn = conn.clone();
469
let addr = addr.private_socket_addr();
470
task::spawn(async move {
471
- match conn
472
- .open_path(addr, quinn_proto::PathStatus::Available)
473
- .await
474
- {
+ match conn.open_path(addr, quinn_proto::PathStatus::Backup).await {
475
Ok(path) => {
476
- path.set_max_idle_timeout(Some(
477
- ENDPOINTS_FRESH_ENOUGH_DURATION,
478
- ))
479
- .ok();
480
- path.set_keep_alive_interval(Some(HEARTBEAT_INTERVAL)).ok();
+ // Keep the relay path open
+ path.set_max_idle_timeout(None).ok();
+ path.set_keep_alive_interval(None).ok();
481
}
482
Err(err) => {
483
warn!("failed to open path {:?}", err);
0 commit comments