Project

General

Profile

Bug #17791

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

Parsing xml using nokogiri: 
 ``` ruby r 
   doc = Nokogiri.XML('<foo><bar /></foo>', nil, 'EUC-JP') 
 ``` 
 Suppose I want to parse 4 xmls with 4 ractors, it will raise an unsafe exception: 
 ``` 
 

 Ractor::UnsafeError: ractor unsafe method called from not main ractor 
 ``` 
 

 the ruby version is 3.0.1. 

 I wonder if there is any way to avoid this.

Back