-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
reverseproxy: Don't buffer chunked requests (fix #5366) #5367
Conversation
I could remove |
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.
Seems good to me.
I think we can just deleted the chunked encoding code. If users who that fix helped find that they need buffering, they can enable it for themselves (and now, set limits).
@mholt |
@u5surf No worries, thank you for checking it out! And thank you for the original patch. The mistake was my oversight. Hope you'll contribute again. |
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.
@mholt
I have left a few comment, I still might have confused for me the new configurations.
Co-authored-by: Y.Horie <[email protected]>
Co-authored-by: Y.Horie <[email protected]>
Co-authored-by: Y.Horie <[email protected]>
@u5surf Ah wow, thank you for your review -- I had a lot going on yesterday and looks like I got distracted during a search-replace and mixed them up 🙈 Thank you for catching those errors! I've pushed what I hope is the final change for this patch. |
Mostly reverts 845bc4d (#5289) -- that was my bad, totally an oversight on my part of the code review.
Adds warning for unsafe config. The
buffer_requests
andbuffer_responses
config params, together with a separatemax_buffer_size
parameter, were not safely designed: very prone to configuring unbounded buffers. I'm not sure why I ever thought that was fine.Deprecates unsafe properties in favor of simpler, safer designed ones.
We'll need a better fix for #5236 -- even if it's the same kind of fix (buffering, and resetting the Content-Length) as long as it's opt-in this time.
/cc @u5surf What do you think?
I think this patch merits a quick release of v2.6.4.