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

The fetch used in this library is prone to "socket hang up" #1787

Open
thelinuxlich opened this issue Aug 6, 2024 · 1 comment
Open

The fetch used in this library is prone to "socket hang up" #1787

thelinuxlich opened this issue Aug 6, 2024 · 1 comment

Comments

@thelinuxlich
Copy link
Contributor

A problem already solved on the native Node.js fetch appears in this lib: if you send multiple requests simultaneously, you're prone to receive the error "socket hang up", probably because the HTTP agent doesn't have the "keepalive" flag enabled.

@ardatan
Copy link
Owner

ardatan commented Aug 6, 2024

We use "node:http" and its global agent in our fetch implementation unless the user provides a custom one. Also if I remember correctly, "keepalive" is enabled by default in newer Node versions.
Is it possible for you to help us reproducing it?

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

2 participants