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
Upgrading from 5.1.1 to 5.2.0 caused issues with Nginx proxy when ssl response body is large. #2546
Comments
@MSP-Greg awesome! thank you for the fast response! |
Sorry for the bad code, which I wrote and tested. It was a cascade of things, but the main issue was that the test response body used was such that the following was true. body.length == body.bytesize The test response body is now using a few multi-byte characters, so that issue can't sneak thru... |
@raivil Can you confirm that Use master with: gem 'puma', github: 'puma/puma' If you can confirm that, I'll feel much more confident releasing the fix as 5.2.1 👍 |
@nateberkopec yes, sure. I'll provide some feedback later today. |
@nateberkopec confirmed it fixed the issue. |
Right on. 5.2.1 will release tomorrow. |
I'm seeing this same issue on puma 6.4.2 |
Describe the bug
Upgrading from
5.1.1
to5.2.0
caused one issue with Nginx proxy when the response is larger (44kb).Requests are successful (status code 200) but the response body was not complete sent to clients.
Clients were seeing the request status as
failed
and anet::ERR_HTTP2_PROTOCOL_ERROR
Nginx config below and using proxy_http_version http1.1 and http/2.
NGINX started logging errors from the upstream:
Reverting to
5.1.1
fixed the issue.Puma config:
Nginx config:
Nginx is configured as a proxy only.
Example request log
Expected behavior
Requests to complete with full response from the backend.
Desktop (please complete the following information):
What could have changed in Puma that caused this issue?
Could this be a configuration issue?
The text was updated successfully, but these errors were encountered: