Backport PR #13447 to 7.16: Fix: patch Puma around a JRuby ARM64 bug #13454
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport PR #13447 to 7.16 branch.
Original message:
Here we're emulating the fallback logic just like it would happen on JRuby < 9.2.18.0.
The only consequence with the dummy
closed_socket?
implementation seems to be stopping a request early.Please note that the
closed_socket?
implementation was slightly different on Puma 4.x, however under JRuby, 4.x always uses the dummy fallback due theRUBY_PLATFORM =~ /linux/
check (RUBY_PLATFORM
returns"java"
on JRuby).Release notes
[rn:skip]
What does this PR do?
Patches around an upstream (JNR) bug which surfaces under ARM64.
Why is it important/What is the impact to the user?
Usable AARCH64 support (under Docker).
Author's Checklist
Related issues
500 Internal Server Error
on aarch64 linux nodes #13444 (this PR resolves the issue with a work-around)