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: do not wait_idle on endpoint close #1753

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

Frando
Copy link
Member

@Frando Frando commented Oct 27, 2023

Description

In a longer debugging session with @dignifiedquire we found out that wait_idle will always wait on a close timer for a few 100 ms before actually completing. If application layer protocols always take care of finishing their work (which we do) this is not needed at all. Also the magicsock will very likely stay around long enough to still send out the close frame.

This together with #1752 brings the runtime of the derp_connect_loop test down from 15s to 4s on my machine! First round is 2-3s (due to bugs in netcheck making it too slow likely) and subsequent round are all >500ms!

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

@Frando Frando added this pull request to the merge queue Oct 27, 2023
Merged via the queue into main with commit f4735c6 Oct 27, 2023
@dignifiedquire dignifiedquire deleted the endpoint-close-no-wait-idle branch November 1, 2023 14:21
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.

2 participants