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

Fix AS::MessagePack with ENV["RAILS_MAX_THREADS"] #49447

Merged

Conversation

jonathanhefner
Copy link
Member

ENV values are strings, so ENV["RAILS_MAX_THREADS"] must be parsed as an int.

Unfortunately, MessagePack::Factory::Pool::MemberPool does not expose a method to check its member count, so the most we can assert is that roundtripping works as expected.

Fixes #49446.

`ENV` values are strings, so `ENV["RAILS_MAX_THREADS"]` must be parsed
as an int.

Unfortunately, `MessagePack::Factory::Pool::MemberPool` does not expose
a method to check its member count, so the most we can assert is that
roundtripping works as expected.

Fixes rails#49446.
@jonathanhefner jonathanhefner merged commit b68cc94 into rails:main Oct 1, 2023
3 of 4 checks passed
jonathanhefner added a commit that referenced this pull request Oct 1, 2023
…max_threads

Fix `AS::MessagePack` with `ENV["RAILS_MAX_THREADS"]`

(cherry picked from commit b68cc94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgumentError (comparison of Integer with String failed) when encrypting data with message_pack
1 participant