Skip to content

fix(quic): reuse dual-stack wildcard listener - #3156

Draft
richard-ramos wants to merge 2 commits into
masterfrom
fix/quic-dual-stack-listener
Draft

richard-ramos wants to merge 2 commits into
masterfrom
fix/quic-dual-stack-listener

Conversation

@richard-ramos

Copy link
Copy Markdown
Collaborator

Summary

Reuse a Linux IPv6 wildcard QUIC listener for IPv4 dials when the socket is
actually dual-stack. This avoids opening a separate ephemeral IPv4 UDP socket
and keeps outbound QUIC traffic on the configured listener port.

Affected Areas

  • Transports — QUIC listener selection

Dependencies

Impact on Library Users

Linux nodes listening on a dual-stack IPv6 wildcard address no longer need an
additional IPv4 dial-only UDP socket. Exact-family listeners remain preferred,
and specific IPv6 binds are not reused for IPv4.

Risk Assessment

Reuse is limited to IPv6 wildcard sockets whose kernel dual-stack option is
enabled. Other platforms and socket configurations retain the existing
selection behavior.

@codecov-commenter

codecov-commenter commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/v2.3@ab49dc9). Learn more about missing BASE report.

Files with missing lines Patch % Lines
libp2p/transports/quictransport.nim 90.90% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##             release/v2.3    #3156   +/-   ##
===============================================
  Coverage                ?   82.09%           
===============================================
  Files                   ?      181           
  Lines                   ?    32693           
  Branches                ?       12           
===============================================
  Hits                    ?    26840           
  Misses                  ?     5853           
  Partials                ?        0           
Files with missing lines Coverage Δ
libp2p/transports/quictransport.nim 87.91% <90.90%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@richard-ramos
richard-ramos changed the base branch from release/v2.3 to master September 22, 2026 19:07
@richard-ramos
richard-ramos force-pushed the fix/quic-dual-stack-listener branch from a72cef3 to 8e5dd92 Compare September 22, 2026 19:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants