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

check the server's HTTP/3 SETTINGS before initiating a session #120

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Mar 9, 2024

Fixes #109. Depends on quic-go/quic-go#4355.

DontCloseRequestStream: true,
CheckSettings: func(settings http3.Settings) error {
if !settings.EnableExtendedConnect {
return errors.New("server didn't enable Extended CONNECT")
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that this check will break compatibility with older and the current version of webtransport-go, since quic-go servers only start enabling Extended CONNECT starting with the next release.

cc @sukunrt @MarcoPolo

@marten-seemann marten-seemann changed the base branch from update-quic-go-v042 to master March 23, 2024 20:53
@marten-seemann marten-seemann marked this pull request as ready for review March 23, 2024 20:53
@marten-seemann marten-seemann merged commit 4080cd5 into master Mar 23, 2024
11 checks passed
@marten-seemann marten-seemann deleted the client-check-server-settings branch March 23, 2024 21:02
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.

check for Extended Connect and WebTransport support before issuing WebTransport requests on the client side
1 participant