Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quic / webtransport: make it possible to listen on the same address / port #1905

Merged
merged 16 commits into from
Nov 28, 2022

Conversation

marten-seemann
Copy link
Contributor

Fixes #1759. Depends on #1895. Depends on quic-go/webtransport-go#47.

Also adds an integration test for QUIC version support.

Copy link
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.

Brief skim, still need to review deeply.

if cfg.QUICReuse != nil {
fxopts = append(fxopts, cfg.QUICReuse...)
} else {
fxopts = append(fxopts, fx.Provide(quicreuse.NewConnManager)) // TODO: close the ConnManager when shutting down the node
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need this todo?

p2p/transport/quicreuse/connmgr.go Outdated Show resolved Hide resolved
p2p/transport/quicreuse/config.go Show resolved Hide resolved
Copy link
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.

Some small changes and questions about what happens in errors during Run goroutine.

p2p/transport/quicreuse/connmgr.go Outdated Show resolved Hide resolved
p2p/transport/quicreuse/connmgr.go Outdated Show resolved Hide resolved
p2p/transport/quicreuse/connmgr.go Outdated Show resolved Hide resolved
p2p/transport/quicreuse/connmgr.go Outdated Show resolved Hide resolved
p2p/transport/quicreuse/connmgr_test.go Outdated Show resolved Hide resolved
p2p/transport/quicreuse/listener.go Show resolved Hide resolved
p2p/transport/webtransport/listener.go Outdated Show resolved Hide resolved
p2p/transport/webtransport/listener.go Outdated Show resolved Hide resolved
p2p/transport/quic/listener.go Show resolved Hide resolved
p2p/transport/quicreuse/config.go Show resolved Hide resolved
@MarcoPolo MarcoPolo force-pushed the shared-quic-webtransport-port branch from a2fa1e5 to ddd4855 Compare November 22, 2022 23:04
@MarcoPolo MarcoPolo self-requested a review November 28, 2022 23:55
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.

webtransport / quic: allow listening on the same UDP port
2 participants