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

Implement sandbox execution in separated child_process to prevent shared event loop leaks #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ceelsoin
Copy link
Member

@ceelsoin ceelsoin commented Apr 14, 2023

When the already implemented sandbox execution mode reach execution time all async/promise codes (that include timeouts and intervals) continue executing on event loop (in background). Recursive asynchronous code may scale memory and cpu infinitively.

This change solve the problem implementing new contract that isolate execution sandbox context in separated child_process that die in the end of process.

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.

1 participant