Skip to content

remove validation enforcing one Transport per net.PacketConn#4851

Merged
marten-seemann merged 1 commit intomasterfrom
remove-multiplexer-singleton
Jan 10, 2025
Merged

remove validation enforcing one Transport per net.PacketConn#4851
marten-seemann merged 1 commit intomasterfrom
remove-multiplexer-singleton

Conversation

@marten-seemann
Copy link
Copy Markdown
Member

It is invalid to use a net.PacketConn in multiple Transports. However, the validation logic is causing pain when using wrapped net.PacketConns. It was introduce to guard against incorrect uses of the API when the Transport was introduced, but this is probably less relevant now than it was back then.

It is invalid to use a net.PacketConn in multiple Transports. However,
the validation logic is causing pain when using wrapped net.PacketConns.
It was introduce to guard against incorrect uses of the API when the
Transport was introduced, but this is probably less relevant now than it
was back then.
@marten-seemann marten-seemann linked an issue Jan 8, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.70%. Comparing base (c42f845) to head (05c7ca2).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4851      +/-   ##
==========================================
- Coverage   83.73%   83.70%   -0.03%     
==========================================
  Files         149      148       -1     
  Lines       16095    16060      -35     
==========================================
- Hits        13476    13442      -34     
- Misses       2089     2090       +1     
+ Partials      530      528       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see the large deletions 🗑️

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.

Remove global "connMultiplexer" tracker

2 participants