From 319bb7fa2c984da45422fa81d12b4a5226beb493 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 25 Feb 2026 11:21:45 +0000 Subject: fix IPv6 connection failures with Happy Eyeballs (RFC 8305) Implement a custom WebSocketTransport that races IPv6 and IPv4 connections with a 250ms head start for IPv6, matching browser behavior. This prevents broken IPv6 from blocking all relay connections indefinitely. This is a temporary fix until the upstream async-wsocket PR is merged: https://github.com/shadowylab/async-wsocket/pull/42 --- src/lib/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/mod.rs') diff --git a/src/lib/mod.rs b/src/lib/mod.rs index 1229e8c..f839e7f 100644 --- a/src/lib/mod.rs +++ b/src/lib/mod.rs @@ -10,6 +10,9 @@ pub mod mbox_parser; pub mod push; pub mod repo_ref; pub mod repo_state; +// TEMPORARY: Remove when async-wsocket includes Happy Eyeballs support. +// See src/lib/transport.rs header for full removal instructions. +pub mod transport; pub mod utils; use anyhow::{Result, anyhow}; -- cgit v1.2.3