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

Add a default timeout that isn't 0 for requests #92

Open
theogravity opened this issue Jan 2, 2024 · 0 comments
Open

Add a default timeout that isn't 0 for requests #92

theogravity opened this issue Jan 2, 2024 · 0 comments

Comments

@theogravity
Copy link

theogravity commented Jan 2, 2024

For the current version of node-fetch that the client uses, the default timeout is 0 (OS-dependent). We're noticing our service that only makes calls to fusion auth go to 100% CPU usage at times and can't tell if it's due to requests getting stuck in flight because of the lack of a timeout.

For systems like Linux, the timeout is usually 3 minutes, which is way too long IMO.

https://stackoverflow.com/questions/1045964/how-to-view-change-socket-connection-timeout-on-linux

https://github.com/node-fetch/node-fetch/tree/2.x?tab=readme-ov-file#options

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