You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on ractor-safety in the http library I maintain, and I just got this error when performing an https request:
code looks like:
ctx=OpenSSL::SSL::SSLContext.newctx.set_params(ctx_options)#=> `set_params': can not access non-shareable objects in constant OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE by non-main ractor. (Ractor::IsolationError)
I've seen that OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE is not frozen. I'm not sure if there's a reason for it. However, even after I freeze it, it's not shareable:
The direct cause is that OpenSSL::X509::Store doesn't have the RUBY_TYPED_FROZEN_SHAREABLE flag set. X509_STORE appears to be safe to share across threads.
Actually, OpenSSL::SSL::SSLContext/SSL_CTX should also be shareable
I'm working on ractor-safety in the http library I maintain, and I just got this error when performing an https request:
code looks like:
I've seen that OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE is not frozen. I'm not sure if there's a reason for it. However, even after I freeze it, it's not shareable:
The text was updated successfully, but these errors were encountered: