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

fix(rate-limit): do not store instances/defaultconfigs globally #90

Merged
merged 1 commit into from Apr 27, 2020

Conversation

phoebeschmidt
Copy link
Contributor

Originally this global map of httpclient instances -> default configs was necessary because of a bug in Axios 19.0 (The change to to SDK-core was added here). This bug was fixed in axios, so it's no longer necessary (axios/axios#2207).

We suspect this may be causing a memory leak, since this memory is never released.

Testing with the-example-app.nodejs locally, this change did improve the jsheapsize after garbage collection, so hopefully this helps our customers, too.

@makinwab makinwab merged commit f811d65 into master Apr 27, 2020
@makinwab makinwab deleted the fix/remove-rate-limit-global-var branch April 27, 2020 07:37
@ghost
Copy link

ghost commented Apr 27, 2020

🎉 This PR is included in version 6.4.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants