Skip to content

fix: do not wait_idle on endpoint close#1753

Merged
Frando merged 1 commit into
mainfrom
endpoint-close-no-wait-idle
Oct 27, 2023
Merged

fix: do not wait_idle on endpoint close#1753
Frando merged 1 commit into
mainfrom
endpoint-close-no-wait-idle

Conversation

@Frando

@Frando Frando commented Oct 27, 2023

Copy link
Copy Markdown
Member

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