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

Default keep alive option depending on node.js runtime version #2395

Open
1 task done
JTG94 opened this issue Jan 15, 2025 · 0 comments
Open
1 task done

Default keep alive option depending on node.js runtime version #2395

JTG94 opened this issue Jan 15, 2025 · 0 comments

Comments

@JTG94
Copy link

JTG94 commented Jan 15, 2025

What would you like to discuss?

According to the docs, it is stated that if the agent option is not specified, the global agent is used by default.

In nodejs version 18.x, http.globalAgent seems to have the keep alive option disabled by default.

From nodejs version 20.x and higher, the keep alive option of http.globalAgent is confirmed to be enabled by default.

If I don't use the custom agent option, keep alive option of "got" is disabled by default in nodejs 18.x, and the keep alive option is enabled by deafult in nodejs 20.x and higher versions, right?
...

Checklist

  • I have read the documentation.
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

No branches or pull requests

1 participant