Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Repair Happy Eyeballs Race Bugs

    1

    Repair Happy Eyeballs races that publish stale winners, leak losing sockets, or misreport dual-stack connection failures.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Repair Happy Eyeballs Race Bugs

    Repair Happy Eyeballs Race Bugs

    Example session with this skill installed

    Our Go HTTP client uses a custom Happy Eyeballs dialer. IPv6 starts first and IPv4 starts after the configured delay. When both connects complete at the same barrier, both goroutines can send a socket to the result channel; the second socket leaks, and during cancellation the cleanup path occasionally closes the actual winner. Repair with a fake resolver, fake conns, barriers, and a fake clock. Preserve address order, delay, timeout, TLS, pool, and retry settings; do not dial the network.

    • Read your context and instructions
    • Compiled the repair happy eyeballs

    Dual-stack race found. IPv6 and IPv4 can both complete before the shared promise is marked, and the late callback can replace the selected socket while leaving the other open. The repair makes winner election generation-aware and atomic, closes every loser exactly once, preserves attempt errors, and validates simultaneous success, cancellation, timeout, and all-failure paths with fake sockets.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Prevent losing IPv4/IPv6 sockets from leaking into the background.Stop late-completing attempts from overwriting the established connection.Ensure all stagger timers are cancelled after a winner is elected.Capture and report errors from all failed connection attempts.

    About this skill

    The problem

    Dual-stack connection races often leak losing sockets, allow late completions to overwrite winners, or fail to clean up stagger timers. These race conditions lead to resource exhaustion, stale socket pooling, and swallowed error reports in Happy Eyeballs implementations.

    What it does

    • Enforces atomic single-winner election to prevent multiple sockets from claiming one connection generation.
    • Implements strict loser teardown to close non-winning attempts and cancel active timers immediately.
    • Preserves aggregate failure evidence so troubleshooting isn't blocked by generic timeout errors.
    • Secures TLS handoff and connection pooling by ensuring only validated winners are published.
    • Introduces deterministic test fixtures using virtual clocks and fake dialers to reproduce race conditions without network flakiness.

    Frameworks & tools

    Works with low-level networking libraries, custom dialers, and connection factories in languages like Go, C++, Rust, or Python. Utilizes Read, Edit, and Bash for repository patching.

    Why this beats prompting it yourself

    General LLMs often overlook the subtle state management required for connection generations and socket ownership. This skill follows a mandatory synchronization register and resource contract to ensure every timer and socket has a terminal disposition, preventing the leaks typical of naive concurrency fixes.

    Use cases

    • Fixing memory leaks caused by lingering IPv4/IPv6 stagger timers.
    • Preventing "winner overwrites" where a late IPv4 success replaces an early IPv6 winner.
    • Hardening connection pools against obsolete or orphaned sockets.
    • Standardizing error reporting when both address families fail simultaneously.

    Known limitations

    Does not modify resolver policies, address family preferences, or retry semantics. Validation is limited to local fixtures and virtual clocks, not real-world network path quality.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 27 days ago

    • Passed all security checks, Safe to install

    Listed27 days ago

    Frequently Asked Questions