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 - flushing temporary files after each worker request #1321

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

AlliBalliBaba
Copy link
Collaborator

Should close #1320.

After some trials with file upload I realized that this code is also a bit leaky (noticed after 100.000+ requests without restart):

while (frankenphp_handle_request(function () {
    echo file_get_contents('php://input');
})) {}

Seems like something relating to the input stream global is not properly cleared.

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.

Temporary file leak in worker mode
3 participants