Actions
Bug #21178
closedSocket fails in Ractor
Description
I think these structures need to be frozen.
/Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:1043:in 'Socket::HostnameResolutionStore#get_addrinfo': can not access non-shareable objects in constant Socket::HostnameResolutionStore::PRIORITY_ON_V6 by non-main ractor. (Ractor::IsolationError)
from /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:724:in 'block in Socket.tcp_with_fast_fallback'
from <internal:kernel>:168:in 'Kernel#loop'
from /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:720:in 'Socket.tcp_with_fast_fallback'
from /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:661:in 'Socket.tcp'
Actions
Like0
Like0Like0