ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119941] [Ruby master Bug#20897] resolv: not usable across ractors
@ 2024-11-15 18:16 chucke (Tiago Cardoso) via ruby-core
  2025-04-09 18:16 ` [ruby-core:121610] [Ruby " tenderlovemaking (Aaron Patterson) via ruby-core
  2025-05-09  8:16 ` [ruby-core:121934] " byroot (Jean Boussier) via ruby-core
  0 siblings, 2 replies; 3+ messages in thread
From: chucke (Tiago Cardoso) via ruby-core @ 2024-11-15 18:16 UTC (permalink / raw)
  To: ruby-core; +Cc: chucke (Tiago Cardoso)

Issue #20897 has been reported by chucke (Tiago Cardoso).

----------------------------------------
Bug #20897: resolv: not usable across ractors
https://bugs.ruby-lang.org/issues/20897

* Author: chucke (Tiago Cardoso)
* Status: Open
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Using the `resolv` library in a non-main ractor is impossible, due to DNS resources being memoized in a mutable class variable. 

[This patch](https://github.com/ruby/resolv/pull/62) fixes it by storing resource information in static variables. 



-- 
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] 3+ messages in thread

* [ruby-core:121610] [Ruby Bug#20897] resolv: not usable across ractors
  2024-11-15 18:16 [ruby-core:119941] [Ruby master Bug#20897] resolv: not usable across ractors chucke (Tiago Cardoso) via ruby-core
@ 2025-04-09 18:16 ` tenderlovemaking (Aaron Patterson) via ruby-core
  2025-05-09  8:16 ` [ruby-core:121934] " byroot (Jean Boussier) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: tenderlovemaking (Aaron Patterson) via ruby-core @ 2025-04-09 18:16 UTC (permalink / raw)
  To: ruby-core; +Cc: tenderlovemaking (Aaron Patterson)

Issue #20897 has been updated by tenderlovemaking (Aaron Patterson).

Assignee set to tenderlovemaking (Aaron Patterson)

----------------------------------------
Bug #20897: resolv: not usable across ractors
https://bugs.ruby-lang.org/issues/20897#change-112663

* Author: chucke (Tiago Cardoso)
* Status: Open
* Assignee: tenderlovemaking (Aaron Patterson)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Using the `resolv` library in a non-main ractor is impossible, due to DNS resources being memoized in a mutable class variable. 

[This patch](https://github.com/ruby/resolv/pull/62) fixes it by storing resource information in static variables. 



-- 
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] 3+ messages in thread

* [ruby-core:121934] [Ruby Bug#20897] resolv: not usable across ractors
  2024-11-15 18:16 [ruby-core:119941] [Ruby master Bug#20897] resolv: not usable across ractors chucke (Tiago Cardoso) via ruby-core
  2025-04-09 18:16 ` [ruby-core:121610] [Ruby " tenderlovemaking (Aaron Patterson) via ruby-core
@ 2025-05-09  8:16 ` byroot (Jean Boussier) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2025-05-09  8:16 UTC (permalink / raw)
  To: ruby-core; +Cc: byroot (Jean Boussier)

Issue #20897 has been updated by byroot (Jean Boussier).

Status changed from Open to Closed

The linked PR was merged.

----------------------------------------
Bug #20897: resolv: not usable across ractors
https://bugs.ruby-lang.org/issues/20897#change-113045

* Author: chucke (Tiago Cardoso)
* Status: Closed
* Assignee: ractor
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Using the `resolv` library in a non-main ractor is impossible, due to DNS resources being memoized in a mutable class variable. 

[This patch](https://github.com/ruby/resolv/pull/62) fixes it by storing resource information in static variables. 



-- 
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] 3+ messages in thread

end of thread, other threads:[~2025-05-09  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-15 18:16 [ruby-core:119941] [Ruby master Bug#20897] resolv: not usable across ractors chucke (Tiago Cardoso) via ruby-core
2025-04-09 18:16 ` [ruby-core:121610] [Ruby " tenderlovemaking (Aaron Patterson) via ruby-core
2025-05-09  8:16 ` [ruby-core:121934] " byroot (Jean Boussier) 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).