Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webrtc: reuse port when dialing #2593

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Oct 3, 2023

depends on #2586

fixes: #2592

The fix turned out much simpler that I'd expected. Reusing the udp mux for dialing is straightforward.

Here we only reuse the listening udpmux. If not listening, a new mux is created everytime we dial.

Adds certhashes to discovered /webrtc-direct addresses. Unfortunately this is impossible to unit test currently. I'll manually verify this for now. The situation is the same for webtransport.

@sukunrt sukunrt changed the title webrtc: correctly report incoming packet address on muxed connection webrtc: reuse port when dialing Oct 3, 2023
@sukunrt sukunrt marked this pull request as draft October 3, 2023 19:18
@sukunrt sukunrt force-pushed the sukun/webrtc-reuseport branch 3 times, most recently from d7adc59 to fd2cc3d Compare October 6, 2023 12:43
@sukunrt sukunrt marked this pull request as ready for review October 6, 2023 12:43
@sukunrt
Copy link
Member Author

sukunrt commented May 8, 2024

This is not useful without further work. Even if we reuse port when dialing, we will not dial anyone with a /webrtc-direct address as we will always prefer QUIC to webrtc-direct. This means, it'll not help us much with address discovery.

@sukunrt sukunrt marked this pull request as draft May 8, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webrtc: Figure out a way to discover webrtc-direct addresses
1 participant