-
Notifications
You must be signed in to change notification settings - Fork 1.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
Make HTTP length constants configurable for JRuby #3518
Conversation
95c3a17
to
5fcca57
Compare
Refactor the code to make HTTP length constants configurable through environment variables or system properties. Added helper methods `getEnvOrProperty` and `getConstLength` for this purpose, with default values and error handling for invalid inputs.
Refactor `getConstLength` to ensure non-negative integer parsing and improve error handling. Added a new integration test to verify the proper behavior and logging of invalid environment variable values.
5fcca57
to
00e0d52
Compare
Nice test. Glad to see you used 'integration', which is the preferred way to test ENV changes. The one test that failed in 'NON-MRI: ubuntu-22.04 jruby' is something that I'll fix soon... |
Create a new `docs/java_options.md` to describe available system properties and environment variables for modifying Puma's Java extension.
Thanks @MSP-Greg. What about
|
We run much of the test suite parallel, and if there's any blocking anywhere, tests may intermittently fail. That, plus a few more issues, is being worked on. Also, the CI runners often have 'noisy neighbors' affecting them. Or, often one can run tests locally for days without failure, but use a GHA runner and things start intermittently failing... |
@MSP-Greg is there any pending action preventing us from moving this forward or do we only need to wait for the release cycles now? |
Description
Refactor the code to configure HTTP length constants through environment variables or system properties.
For this purpose, I added helper methods
getEnvOrProperty
andgetConstLength
, with default values and error handling for invalid inputs.The changes consider the following three constants described in docs/compile_options.md:
Documentation added as /docs/java_options.md
closes #3512
Your checklist for this pull request
[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.