-
-
Notifications
You must be signed in to change notification settings - Fork 237
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: don't flush if the request body hasn't been read entirely #122
Conversation
Hello
You can run it with docker-compose, or in Kubernetes. During a media upload, I get the error
Your fix already mitigate the crash I get before, but I’m curious to understand the root cause. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a strange bug... 🤔
@dunglas This issue still exists. During an upload (successful) with Octane, the |
Thanks for the feedback! Would you been able to provide a reproducer? |
ASAP. I found that this happens for non-upload requests eventually. |
I tried to reproduce but I faced this #566 (comment) again I couldn't run FrankenPHP with my Dockerfile in my M1 machine. It seems this issue does not exist in Laravel Sail or non-containerized environment. |
@dunglas Here is the reproduction repo of this issue: |
I too am having this problem. It seems that request_body is limited to 2MB in size. There is no problem uploading files less than 2MB, but files larger than 2MB will result in an
What I don't know is that it doesn't seem to work even though I applied that option. |
Hmm, I think it makes sense that we are seeing this error, looking at the code.
This looks like it might be an easy fix since the underlying go issue might be fixed. |
@smortexa I've opened a PR to your reproducer with some dockerfile suggestions. Thank you for making it, as it made verifying the fix much easier. |
If you'd want to give this image a go: |
Follows #121. Mitigate golang/go#15527.