~/talk

An adventure of Happy Eyeballs

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, networking]
github:shioimm
slides:none on file

Adds Happy Eyeballs v2 (RFC8305) to Socket.tcp by running parallel DNS resolution in per-family threads, starting staggered connections, and waiting with IO.select + IO.pipe to detect both name and socket events. Implementation is ~528 LOC (was 43), doubles some call latency but prevents hangs; a fast_fallback option lets callers disable it. Demo shows Ruby with the change connects via IPv4 when IPv6 hangs. Patch is merged as PR#9374 to master and targets Ruby 3.4; C TCPSocket.new support is pending.

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Current Ruby socket issues
  3. 3:12Happy Eyeballs v2 explained
  4. 6:28Implementing in Ruby Socket
  5. 8:16First implementation problems
  6. 10:53State machine approach
  7. 15:24State transitions in code
  8. 22:04Edge case handling
  9. 23:40Performance impact
  10. 24:47Demo setup
  11. 26:01Demo without Happy Eyeballs
  12. 26:45Demo with Happy Eyeballs
  13. 27:36Problem case demo
  14. 28:39Project status and next steps
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.