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

fastcgi: check for CONTENT_LENGTH when sending requests #6661

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

Conversation

WeidiDeng
Copy link
Member

@WeidiDeng WeidiDeng commented Oct 24, 2024

For #6637, I think previous pr is a bit too ambitious. Requests buffering is hard to do right without considering a multitude of factors. This patch only requires CONTENT_LENGTH to be set for fastcgi requests.

@francislavoie
Copy link
Member

So we just throw 411 for any chunked requests? Makes sense that it'll prevent hanging. But long term, shouldn't we have support for streaming chunked requests?

@WeidiDeng
Copy link
Member Author

php-fpm doesn't support streaming chunked requests. That's the thing. Golang fastcgi supports streaming chunked requests, but does anyone use that with caddy?

@francislavoie
Copy link
Member

https://bz.apache.org/bugzilla/show_bug.cgi?id=57087 looks like Apache fixed their fpm support with buffering

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.

2 participants