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 fix: do not wait for process.nextTick to clear pending callbacks #2057

Merged
merged 2 commits into from
Feb 5, 2022

Conversation

smashah
Copy link
Contributor

@smashah smashah commented Feb 2, 2022

Addresses the memory leak identified here:

#1871 (comment)

@smashah smashah changed the title Memory leak fix: do not wait process.nextTick to clear pending callbacks Memory leak fix: do not wait for process.nextTick to clear pending callbacks Feb 2, 2022
@DABH
Copy link
Contributor

DABH commented Feb 5, 2022

@smashah I am in favor of this change insofar as it fixes the memory issues, but it looks like this change causes tests to fail. Any chance you can investigate what's up? I would feel much happier merging if we could get the tests green :)

@smashah
Copy link
Contributor Author

smashah commented Feb 5, 2022

@DABH I've resolved the linting failures, tests seem to pass here with and without the transport changes also.

@DABH DABH merged commit f741383 into winstonjs:master Feb 5, 2022
@DABH
Copy link
Contributor

DABH commented Feb 5, 2022

Thanks again! Let's hope this resolves any memory issues once and for all!

@KoushikDasika
Copy link

@DABH I'm super excited to see this merged! When can we expect the next release with this goodie? I'm pointing to this commit on master for now.

Thank you @smashah for your work! I loved how you broke down how you tracked it down in your various PRs.

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

Successfully merging this pull request may close these issues.

3 participants