Skip to content

[rush-serve] Unref server#5324

Merged
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:rush-serve-unref
Aug 26, 2025
Merged

[rush-serve] Unref server#5324
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:rush-serve-unref

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Calls unref() on the HTTP/2 server owned by rush-serve-plugin so that if the user presses q to terminate watch mode, the process will actually exit.

Details

Possible this could leak a socket, but it's better than forcing the user to press Ctrl+C to terminate. In the future this should tap some hook indicating that the user is trying to shut down the process.

How it was tested

Ran a watch mode command with rush-serve-plugin enabled and verified that pressing q causes the process to gracefully exit.

Impacted documentation

None.

@dmichon-msft dmichon-msft merged commit 6a6dfc5 into microsoft:main Aug 26, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Aug 26, 2025
@dmichon-msft dmichon-msft deleted the rush-serve-unref branch August 26, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants