Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

Green-Sky
Copy link
Member

@Green-Sky Green-Sky commented Mar 15, 2025

but we and the other peer would support direct.


All hail the network profiler.

image
(missing returning udp traffic)


This change is Reviewable

@github-actions github-actions bot added the bug Bug fix for the user, not a fix to a build script label Mar 15, 2025
@Green-Sky Green-Sky added this to the v0.2.21 milestone Mar 15, 2025
@Green-Sky Green-Sky marked this pull request as ready for review March 15, 2025 21:56
@pull-request-attention pull-request-attention bot assigned nurupo and unassigned Green-Sky Mar 16, 2025
@JFreegman
Copy link
Member

JFreegman commented Mar 18, 2025

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.

@Green-Sky
Copy link
Member Author

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?

Yes.

Edit: And no I don't think it affects hole punching.

Good to know.

@Green-Sky Green-Sky force-pushed the ngc_tcp_udp_cooldown branch from 1f4bfdc to d80c0ab Compare March 19, 2025 17:30
@pull-request-attention pull-request-attention bot assigned Green-Sky and unassigned nurupo Mar 20, 2025
@nurupo nurupo requested a review from JFreegman March 20, 2025 00:15
@Green-Sky Green-Sky modified the milestones: v0.2.21, v0.2.22 Mar 20, 2025
@Green-Sky Green-Sky marked this pull request as draft March 20, 2025 13:39
@Green-Sky
Copy link
Member Author

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.
@Green-Sky Green-Sky force-pushed the ngc_tcp_udp_cooldown branch from d80c0ab to 4071d74 Compare April 2, 2025 10:51
@Green-Sky Green-Sky modified the milestones: v0.2.22, v0.2.21 Apr 2, 2025
@iphydf iphydf modified the milestones: v0.2.21, v0.2.22 Apr 2, 2025
@Green-Sky Green-Sky marked this pull request as ready for review April 2, 2025 13:14
@Green-Sky Green-Sky removed their assignment Apr 2, 2025
@Green-Sky Green-Sky removed their assignment Apr 2, 2025
Copy link
Member

@JFreegman JFreegman left a 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: :shipit: complete! 1 of 1 approvals obtained

@Green-Sky
Copy link
Member Author

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)

@Green-Sky Green-Sky closed this May 13, 2025
@Green-Sky Green-Sky deleted the ngc_tcp_udp_cooldown branch May 16, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix for the user, not a fix to a build script
Development

Successfully merging this pull request may close these issues.

4 participants