fix: reuse conn by dst_peer_id, every peer use only 1 quic conn, to fix nat lost problem (#2216)

This commit is contained in:
21paradox
2026-05-09 22:33:44 +08:00
committed by GitHub
parent 8e1d079142
commit bfbfa2ef8d
3 changed files with 87 additions and 44 deletions
Generated
+4
View File
@@ -2291,6 +2291,7 @@ dependencies = [
"machine-uid",
"maplit",
"mimalloc",
"moka",
"multimap",
"natpmp",
"netlink-packet-core",
@@ -5103,9 +5104,12 @@ version = "0.12.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9321642ca94a4282428e6ea4af8cc2ca4eac48ac7a6a4ea8f33f76d0ce70926"
dependencies = [
"async-lock",
"crossbeam-channel",
"crossbeam-epoch",
"crossbeam-utils",
"event-listener",
"futures-util",
"loom",
"parking_lot",
"portable-atomic",