Skip to content

Commit 13f93ac

Browse files
ensure path open
1 parent ccc30f9 commit 13f93ac

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ netwatch = { git = "https://github.com/n0-computer/net-tools", branch = "feat-mu
5151
# iroh-quinn-proto = { path = "../iroh-quinn/quinn-proto" }
5252
# iroh-quinn-udp = { path = "../iroh-quinn/quinn-udp" }
5353

54-
# iroh-quinn = { git = "https://github.com//n0-computer/quinn", branch = "flub/quinn-path-events-status" }
55-
# iroh-quinn-proto = { git = "https://github.com//n0-computer/quinn", branch = "flub/quinn-path-events-status" }
56-
# iroh-quinn-udp = { git = "https://github.com//n0-computer/quinn", branch = "flub/quinn-path-events-status" }
54+
iroh-quinn = { git = "https://github.com//n0-computer/quinn", branch = "flub/open-path-ensure" }
55+
iroh-quinn-proto = { git = "https://github.com//n0-computer/quinn", branch = "flub/open-path-ensure" }
56+
iroh-quinn-udp = { git = "https://github.com//n0-computer/quinn", branch = "flub/open-path-ensure" }

iroh/src/magicsock.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ impl MagicSock {
476476
let addr = *addr;
477477
task::spawn(async move {
478478
match conn
479-
.open_path(addr, quinn_proto::PathStatus::Available)
479+
.open_path_ensure(addr, quinn_proto::PathStatus::Available)
480480
.await
481481
{
482482
Ok(path) => {
@@ -497,7 +497,10 @@ impl MagicSock {
497497
let conn = conn.clone();
498498
let addr = addr.private_socket_addr();
499499
task::spawn(async move {
500-
match conn.open_path(addr, quinn_proto::PathStatus::Backup).await {
500+
match conn
501+
.open_path_ensure(addr, quinn_proto::PathStatus::Backup)
502+
.await
503+
{
501504
Ok(path) => {
502505
// Keep the relay path open
503506
path.set_max_idle_timeout(None).ok();

0 commit comments

Comments
 (0)