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'
Updated by byroot (Jean Boussier) 20 days ago
- Is duplicate of Bug #21179: Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors added
Updated by byroot (Jean Boussier) 20 days ago
- Status changed from Open to Closed
Sorry, I didn't see you opened an issue already. I'm marking yours as duplicate because it has less context.
Actions
Like0
Like0Like0