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

Do not block Node.js from exiting on an idle HTTP/2 connection #716

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

timostamm
Copy link
Member

An open HTTP/2 connections blocks the Node.js event loop from exiting. The behavior is unexpected for users who just want to issue a single request from their script.

This PR releases the reference to idle HTTP/2 connections - connections that do not currently have any unfinished requests.

Fixes #711.

@timostamm timostamm merged commit 002633f into main Jul 12, 2023
2 checks passed
@timostamm timostamm deleted the tstamm/unref-idle-conn branch July 12, 2023 19:14
@timostamm timostamm mentioned this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to exit after calling the request?
2 participants