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 --- Cargo.lock | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 8d63861..97aa90a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1538,6 +1538,7 @@ dependencies = [ "anyhow", "assert_cmd", "async-trait", + "async-wsocket", "auth-git2", "chacha20poly1305", "chrono", @@ -1568,6 +1569,7 @@ dependencies = [ "serial_test", "test_utils", "tokio", + "tokio-tungstenite 0.26.2", "urlencoding", "zeroize", ] -- cgit v1.2.3