diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-25 11:21:45 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-25 11:48:13 +0000 |
| commit | 319bb7fa2c984da45422fa81d12b4a5226beb493 (patch) | |
| tree | bb05a39180cf0513434a0cdd63fd25b4788066c5 /src/lib/mod.rs | |
| parent | 3a17877bcdabc9d6721e3054c2bb07a892f32147 (diff) | |
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
Diffstat (limited to 'src/lib/mod.rs')
| -rw-r--r-- | src/lib/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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; | |||
| 10 | pub mod push; | 10 | pub mod push; |
| 11 | pub mod repo_ref; | 11 | pub mod repo_ref; |
| 12 | pub mod repo_state; | 12 | pub mod repo_state; |
| 13 | // TEMPORARY: Remove when async-wsocket includes Happy Eyeballs support. | ||
| 14 | // See src/lib/transport.rs header for full removal instructions. | ||
| 15 | pub mod transport; | ||
| 13 | pub mod utils; | 16 | pub mod utils; |
| 14 | 17 | ||
| 15 | use anyhow::{Result, anyhow}; | 18 | use anyhow::{Result, anyhow}; |