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

Backport set CONTENT_LENGTH for chunked requests #2496

Merged
merged 3 commits into from Nov 30, 2020

Conversation

TheRusskiy
Copy link

@TheRusskiy TheRusskiy commented Nov 28, 2020

Description

Backporting #2287 to 4.3 version

Your checklist for this pull request

  • I have reviewed the guidelines for contributing to this repository.
  • I have added an entry to History.md if this PR fixes a bug or adds a feature. If it doesn't need an entry to HISTORY.md, I have added [changelog skip] or [ci skip] to the pull request title.
  • I have added appropriate tests if this PR fixes a bug or adds a feature.
  • My pull request is 100 lines added/removed or less so that it can be easily reviewed.
  • If this PR doesn't need tests (docs change), I added [ci skip] to the title of the PR.
  • If this closes any issues, I have added "Closes #issue" to the PR description or my commit messages.
  • I have updated the documentation accordingly.
  • All new and existing tests passed, including Rubocop.

Tests passed locally for me.

268 runs, 658 assertions, 0 failures, 0 errors, 2 skips

Rubocop shows a warning for this line, not related to this PR:
https://github.com/TheRusskiy/puma/blob/f3b409c565d67557c04ad37c10a42dd8cad0b655/lib/puma/server.rb#L697

@nateberkopec
Copy link
Member

Neat! I'll take a look, we might be able to release this next week along with 5.1.

Appreciate you taking the time to follow up and backport this for everyone 🙏

@nateberkopec nateberkopec added the waiting-for-review Waiting on review from anyone label Nov 28, 2020
MSP-Greg and others added 2 commits November 28, 2020 16:38
…#2380)

* Backport ssl fixtures/changes from puma#2333

* RuboCop server.rb

* Update Actions workflow, add Ubuntu 20.04

* Update extconf.rb

* Backport puma#2121

Co-authored-by: wjordan <will@code.org>

Co-authored-by: wjordan <will@code.org>
@nateberkopec nateberkopec merged commit 77a90ec into puma:4-3-stable Nov 30, 2020
@nateberkopec
Copy link
Member

A new 4.3.x release should be out today with this change

@TheRusskiy
Copy link
Author

Nate the neat!

@nateberkopec
Copy link
Member

Released as 4.3.7

refi64 added a commit to refi64/open-build-service that referenced this pull request Dec 12, 2022
Older verisons of Puma had a bug where chunked uploads would result in
an empty body:

puma/puma#1839

This breaks OBS file uploads that rely chunked transfers, which is
generally the standard mechanism used by http clients for uploading
large files. A fix was backported to 4.3.7:

puma/puma#2496

so this PR updates Puma to the latest 4.3.x release to include this
fix.

Likely fixes openSUSE#9329.

(Note that, if OBS is behind a reverse proxy, this issue may not be
observed in the first place, as many reverse proxies will tend to
buffer the uploaded data, thus side-stepping the use of chunked uploads
entirely.)

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
refi64 added a commit to refi64/open-build-service that referenced this pull request Dec 12, 2022
Older verisons of Puma had a bug where chunked uploads would result in
an empty body:

puma/puma#1839

This breaks OBS file uploads that rely chunked transfers, which is
generally the standard mechanism used by http clients for uploading
large files. A fix was backported to 4.3.7:

puma/puma#2496

so this PR updates Puma to the latest 4.3.x release to include this
fix.

Likely fixes openSUSE#9329.

(Note that, if OBS is behind a reverse proxy, this issue may not be
observed in the first place, as many reverse proxies will tend to
buffer the uploaded data, thus side-stepping the use of chunked uploads
entirely.)

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug waiting-for-review Waiting on review from anyone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants