ActionsLike0
Bug #21179
closedIntroduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors
Description
require "socket"
Ractor.new do
Socket.tcp("example.com", 80)
end.take
socket.rb:1046: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 socket.rb:724:in 'block in Socket.tcp_with_fast_fallback'
from socket.rb:720:in 'Socket.tcp_with_fast_fallback'
Proposed patch: https://github.com/ruby/ruby/pull/12896
Updated by byroot (Jean Boussier) 23 days ago
- Related to Feature #20935: API for Globally Enabling/Disabling Happy Eyeballs Version 2 in the Socket Class added
Updated by byroot (Jean Boussier) 23 days ago
- Has duplicate Bug #21178: Socket fails in Ractor added
Updated by tenderlovemaking (Aaron Patterson) 14 days ago
- Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
ActionsLike0