Skip to content

Make OpenSSL::Digest classes Ractor-safe#1053

Open
etiennebarrie wants to merge 1 commit into
ruby:masterfrom
etiennebarrie:make-openssl-digest-classes-ractor-safe
Open

Make OpenSSL::Digest classes Ractor-safe#1053
etiennebarrie wants to merge 1 commit into
ruby:masterfrom
etiennebarrie:make-openssl-digest-classes-ractor-safe

Conversation

@etiennebarrie
Copy link
Copy Markdown

Use class_eval with a string so the initialize instance method, and the digest and hexdigest class methods are not defined via define_method with a Proc (which is not Ractor-safe).

@etiennebarrie etiennebarrie force-pushed the make-openssl-digest-classes-ractor-safe branch from ef08d13 to b49c946 Compare May 20, 2026 07:53
Use class_eval with a string so the initialize instance method, and the
digest and hexdigest class methods are not defined via define_method
with a Proc (which is not Ractor-safe).
@etiennebarrie etiennebarrie force-pushed the make-openssl-digest-classes-ractor-safe branch from b49c946 to a363226 Compare May 20, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant