-
Notifications
You must be signed in to change notification settings - Fork 295
fix(ngc): dont double every message, if we are not directly connected #2894
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
Conversation
I definitely think there needs to be more leeway than this. UDP connections can be weird and take a bit of time to be established. What's the actual source of this bug, anyhow? Alice knows Bob's IP, Bob knows Alice's IP, but for whatever reason they can't establish a UDP connection? Edit: And no I don't think it affects hole punching. |
Yes.
Good to know. |
1f4bfdc
to
d80c0ab
Compare
Change of plans. I took a look and NGC simply has no NAT hole punching code, making this double sending act as such. So we need to replace this with some proper code, either by copying the existing code from dht, or writing something new. I will lower the timer to once per second and push this as a quick fix to get this into the release. |
but we and the other peer would support direct.
d80c0ab
to
4071d74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r1, 2 of 2 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status:complete! 1 of 1 approvals obtained
Closing in favor of #2905 , not sure why "checks/check/check-release (pull_request_target)" keeps failing with this one. (had to recreate the commit, so the cache is not pulled over to the new pr) |
but we and the other peer would support direct.
All hail the network profiler.
(missing returning udp traffic)
This change is