Skip to content

http3: accept interfaces, not structs - #5239

Draft
marten-seemann wants to merge 1 commit into
masterfrom
http3-accept-interfaces
Draft

marten-seemann wants to merge 1 commit into
masterfrom
http3-accept-interfaces

Conversation

@marten-seemann

@marten-seemann marten-seemann commented Jun 25, 2025 •

Copy link
Copy Markdown
Member

One - rather ugly - option of resolving #5240.

Comment thread http3/transport.go
// If Dial is nil, a UDPConn will be created at the first request
// and will be reused for subsequent connections to other servers.
Dial func(ctx context.Context, addr string, tlsCfg *tls.Config, cfg *quic.Config) (*quic.Conn, error)
Dial func(ctx context.Context, addr string, tlsCfg *tls.Config, cfg *quic.Config) (QUICConn, error)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is super ugly. It's now not possible anymore to use quic.Dial: the user has to manually wrap the returned quic.Conn.

@codecov

codecov Bot commented Jun 25, 2025 •

Copy link
Copy Markdown

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
1614 4 1610 3
View the top 3 failed test(s) by shortest run time
github.com/quic-go/quic-go/http3::
Stack Traces | 0s run time
Build error
github.com/quic-go/quic-go/http3::Failure
Stack Traces | 0s run time
Runtime error
github.com/quic-go/quic-go/integrationtests/self_test::[build failed]
Stack Traces | 0s run time
Build error

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

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.

1 participant