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

Memory leak after request error #2352

Open
2 tasks done
archvlad opened this issue May 21, 2024 · 0 comments
Open
2 tasks done

Memory leak after request error #2352

archvlad opened this issue May 21, 2024 · 0 comments

Comments

@archvlad
Copy link
Contributor

archvlad commented May 21, 2024

Describe the bug

  • Node.js version: 16.20.2
  • OS & version: Windows 11

Memory usage gradually increases after Timeout awaiting 'request'
Behaviour is different when using AbortController, ram is on one level

Actual behavior

When script send hundreds of requests to api and most of them failed after request error, memory consumption increases till heap out of memory error

Screenshot 2024-05-21 025120

Expected behavior

After failed request resource are cleared and memory usage stays on consistent level

Code to reproduce

https://github.com/archvlad/got_memory_leak

Checklist

  • I have read the documentation.
  • I have tried my code with the latest version of Node.js and Got.
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