From b5588edc0a538de840c79e0bbc9d271ba0c5a711 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 18 Dec 2020 18:19:33 +0900 Subject: openssl is ractor-safe ossl_bn_ctx is C's global variable and it should be ractor-local to make it ractor-safe. --- ext/openssl/ossl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/openssl/ossl.c') diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 2f54b861f1..37e619f99d 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -1126,6 +1126,10 @@ ossl_crypto_fixed_length_secure_compare(VALUE dummy, VALUE str1, VALUE str2) void Init_openssl(void) { +#if HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + #undef rb_intern /* * Init timezone info -- cgit v1.2.3