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

fix(iroh-net): delays of non-stun probes for subsequent relays #2445

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

flub
Copy link
Contributor

@flub flub commented Jul 2, 2024

Description

The idea of the probe plan is that first the STUN probes happen, if
those don't work we add the other probes. However when there are
multiple relay servers we accidentally started the subsequent probes
for all but the first relay server too late.

This makes sure to globally record when the last STUN probe was sent
and re-uses this value for all the relay servers which are probed.

Breaking Changes

Notes & open questions

Fixes #2444

See #2221 for flaky tests.

Change checklist

  • Self-review.
  • [ ] Documentation updates if relevant.
  • Tests if relevant.
  • [ ] All breaking changes documented.

The idea of the probe plan is that first the STUN probes happen, if
those don't work we add the other probes.  However when there are
multiple relay servers we accidentally started the subsequent probes
for all but the first relay server too late.

This makes sure to globally record when the last STUN probe was sent
and re-uses this value for all the relay servers which are probed.
@flub flub requested a review from ramfox July 2, 2024 12:13
@flub flub changed the title fix(iroh-net): delays off non-stun probes for subsequent relays fix(iroh-net): delays for non-stun probes for subsequent relays Jul 2, 2024
@flub flub changed the title fix(iroh-net): delays for non-stun probes for subsequent relays fix(iroh-net): delays of non-stun probes for subsequent relays Jul 2, 2024
@dignifiedquire dignifiedquire added this to the v0.20.0 milestone Jul 2, 2024
Copy link
Contributor

@ramfox ramfox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet!

@Frando
Copy link
Member

Frando commented Jul 3, 2024

The tests marked flaky in here should be fixed by #2450, so if that gets merged first we'd have to remove the flaky markers from this PR

@flub flub enabled auto-merge July 3, 2024 08:44
@flub
Copy link
Contributor Author

flub commented Jul 3, 2024

lol, of course #2450 failed in the queue due to a different flaky test 😭 Leaving this as-is though. this if for #2450 to sort out.

@flub flub added this pull request to the merge queue Jul 3, 2024
Merged via the queue into main with commit b34587f Jul 3, 2024
25 checks passed
@flub flub deleted the flub/netcheck-after-stun-delay branch October 4, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Netcheck https & icmp probes are scheduled too late for subsequent relay servers
4 participants