Repository navigation
feat(tls): multi-peer mesh support for TLS transport (#136) - #139
Merged
Merged
Conversation
…location, and egress gating (#136)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #136: Implements full multi-peer support for
transport = tlsinyipd.Changes Summary
crates/yip-io/src/epoll.rs):create,add,remove,wait_tokens), preserving#![forbid(unsafe_code)]inyipd.quic.rs(new,wait).bin/yipd/src/tls.rs):PeerConnstate machine (Disconnected,Connecting,Connected) with exponential reconnect backoff (100ms -> 5000ms).local_public < peer_publicdials,local_public > peer_publiclistens) to prevent connection glare.INNER_HANDSHAKE_TIMEOUT = 10sdeadline per peer.bin/yipd/src/tls.rs):pumploop handlingTOKEN_TUN,TOKEN_LISTENER, andTOKEN_PEER_BASE + idx.PeerManager::on_udpwith inner confirmation gating, immediate egress reply forwarding, and TUN delivery.d.dstacross active streams.bin/yipd/src/config.rs):drive_multi_peer_concurrent_pumpunit test verifying 2 concurrent loopback TLS peers with zero cross-talk or packet leaks.Verification
cargo test --all: All 351yipdtests and 42 integration/netns tests passed cleanly.cargo clippy --all-targets -- -D warnings: 0 warnings.cargo fmt --check: formatting clean.