* [ruby-core:121278] [Ruby master Bug#21179] Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors
@ 2025-03-10 20:39 byroot (Jean Boussier) via ruby-core
2025-03-19 19:36 ` [ruby-core:121408] [Ruby " tenderlovemaking (Aaron Patterson) via ruby-core
0 siblings, 1 reply; 2+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2025-03-10 20:39 UTC (permalink / raw)
To: ruby-core; +Cc: byroot (Jean Boussier)
Issue #21179 has been reported by byroot (Jean Boussier).
----------------------------------------
Bug #21179: Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors
https://bugs.ruby-lang.org/issues/21179
* Author: byroot (Jean Boussier)
* Status: Open
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED
----------------------------------------
```ruby
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
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-core:121408] [Ruby Bug#21179] Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors
2025-03-10 20:39 [ruby-core:121278] [Ruby master Bug#21179] Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors byroot (Jean Boussier) via ruby-core
@ 2025-03-19 19:36 ` tenderlovemaking (Aaron Patterson) via ruby-core
0 siblings, 0 replies; 2+ messages in thread
From: tenderlovemaking (Aaron Patterson) via ruby-core @ 2025-03-19 19:36 UTC (permalink / raw)
To: ruby-core; +Cc: tenderlovemaking (Aaron Patterson)
Issue #21179 has been updated by tenderlovemaking (Aaron Patterson).
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
Backported in 0e416faf450159a989fba87b41f3e3874a4af129
----------------------------------------
Bug #21179: Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors
https://bugs.ruby-lang.org/issues/21179#change-112386
* Author: byroot (Jean Boussier)
* Status: Closed
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
----------------------------------------
```ruby
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
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-19 19:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-10 20:39 [ruby-core:121278] [Ruby master Bug#21179] Introduction Happy Eyeballs Version 2 broke `Socket.tcp` from secondary Ractors byroot (Jean Boussier) via ruby-core
2025-03-19 19:36 ` [ruby-core:121408] [Ruby " tenderlovemaking (Aaron Patterson) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).