Happy Eyeballs v3 in Firefox

Update since IETF 126
50% Firefox Release rollout and A/B experimentation

IETF 127 · HAPPY · 16 November 2026  ·  Max Inden · Mozilla

Since IETF 126

  • Nightly: on by default.
  • Release: rolled out to 50%.
  • Release experiment, Firefox 160: 5% Happy Eyeballs v3, 5% control.
  • mozilla/happy-eyeballs: v0.11.0, v1.0.0, v1.1.0, v2.0.0.

Happy Eyeballs Delays

Resolution Delay

  • 25 ms.
  • In Firefox and in the draft (#148).

Connection Attempt Delay Multiplier

  • A 50 ms base with a ×2 multiplier.
  • In Firefox and in the draft (#143).
0 ms
50
150
350
750 ms

Happy Eyeballs DNS Resolution Delay

About 92% of runs get all DNS answers within 25 ms of the first.

Next step: a dynamic Resolution Delay, derived from recent DNS answers (for example the last 100 from the same resolver), instead of tuning one constant.

Time between the first and the last positive DNS answer (A, AAAA, HTTPS) in a Happy Eyeballs run, including answers that arrive after connecting started, cumulative share of runs. 53.7% of runs get all answers at once, about 98.6% within 100 ms. Firefox Beta 161 (Release on 24 November 2026), 69,641 clients, 166.5M runs, every histogram bucket (about 9% wide). Source: GLAM: netwerk_happy_eyeballs_dns_answer_spread_v2 (until_end).

Release experiment

  • Focus on Firefox 160, Desktop Release.
  • Two branches, 5% of users each, about 1.17M Firefox 160 clients per branch: Happy Eyeballs v3 on, and off as control.
  • Only page loads whose main document opened a new connection, the ones relevant to Happy Eyeballs.
Share of page loads whose main document opened a new connection.

More page loads over HTTP/3

HTTP version of the main document, page loads on a new connection: 7.7M (control) and 8.0M (HEv3). HTTP/3 goes from 19.6% to 24.6%, mostly taken from HTTP/2.

First contentful paint is faster at every percentile

First contentful paint, HEv3 vs control, page loads on a new connection: 5.2M (control) and 5.4M (HEv3). Bars: change in %; labels: change in % (and ms). Lower is faster. Median 661 ms to 643 ms, P99 11222 ms to 10815 ms.

Changes since IETF 126

  • An HTTPS record with an IP hint for the preferred family counts as that family’s answer, so the race starts without waiting for AAAA (happy-eyeballs#153, draft §4.2.1).
  • Firefox implements Optimistic DNS: connect to a stale answer right away while a fresh lookup runs. Fresh addresses join the same race, so a stale address that no longer works does not fail the connection (bug 2060788).
  • Stale negative answers are revalidated too (bug 2072592). They get the same 600 s grace period as positive ones (bug 2084330).

What Happy Eyeballs will enable in the future

DNS

  • Optimistic DNS done bug 2060788
    Race a stale answer, revalidate in parallel.
  • Network change proposed bug 2091374
    Mark DNS cache entries stale instead of deleting them.
  • Persistent DNS cache proposed bug 2087407
    Keep answers and HTTPS records across restarts.

HTTP/3

  • Optimistic Alt-Svc proposed bug 2060496
    Reuse an expired HTTP/3 Alt-Svc mapping.
  • Optimistic HTTP/3 proposed bug 1914201
    Race QUIC with no prior HTTP/3 signal.
  • Proxies proposed bug 2071358
    Race HTTP/3 against HTTP/2 through the proxy tunnel.

Questions?

github.com/mozilla/happy-eyeballs/issues · bug 1953459

mail@max-inden.de · necko@mozilla.com

Backup

The netwerk.happy_eyeballs_* metrics, Firefox 160 Release, from GLAM (client-aggregated).

End-to-end time, succeeded

First DNS query to a connected socket, successful runs. Median 74 ms, P95 558 ms. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_end_to_end_time_succeeded.

End-to-end time, failed

Failed runs either fail fast (median 10 ms) or hit the 10 s cap. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_end_to_end_time_failed.

Winning attempt index

Which attempt connected. 94% of runs win on the first attempt. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_winning_attempt_index.

Connection attempt count

Attempts started before one succeeded, successful runs. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_connection_attempt_count.

Cancelled attempt count

Attempts cancelled once another won. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_cancelled_attempt_count.

Time to first attempt

Time from the start of a run to the first connection attempt. Median 0 ms. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_time_to_first_attempt.

DNS resolution time, by record type

Per record type, log scale. HTTPS records resolve faster than A and AAAA. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_dns_resolution_time.

DNS answer spread before the first attempt

First version of the spread metric: only answers before the first connection attempt. Median and P95 0 ms. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_dns_answer_spread.

How connections learn about HTTP/3

Share of connections by how HTTP/3 support was advertised. Estimated from GLAM’s per-client sums. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_h3_discovery_by_resolver.

How connections learn about HTTP/3, by resolver

Same, split by DoH and the native resolver. DoH is about 19% of connections. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_h3_discovery_by_resolver.

What HTTPS records carry, by resolver

Same, split by DoH and the native resolver. Firefox 160 Release. Source: GLAM: netwerk_happy_eyeballs_https_rr_features_by_resolver.