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

http3: process 1xx status codes #4437

Merged
merged 4 commits into from
Apr 21, 2024

Conversation

mchtech
Copy link
Contributor

@mchtech mchtech commented Apr 15, 2024

Fix #4403
copy the impletation from the go standard library and add tests.

Copy link

google-cla bot commented Apr 15, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Member

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

Can you add an integration test as well? integrationtests/self/http_test.go

)

// copy from net/http: support 1xx responses
trace := httptrace.ContextClientTrace(req.Context())
Copy link
Member

Choose a reason for hiding this comment

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

We don't support tracing yet.

Copy link
Member

Choose a reason for hiding this comment

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

Actually, this is fine. Let's keep it as is.

@marten-seemann marten-seemann changed the title process http 1xx status code http3: process 1xx status codes Apr 15, 2024
@marten-seemann
Copy link
Member

@mchtech Are you planning to address the review comments here? Would be great if we could include this fix in the next release!

@mchtech
Copy link
Contributor Author

mchtech commented Apr 20, 2024

I will add an integration test in this weekend.

Signed-off-by: mchtech <[email protected]>
Copy link
Member

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

Thank you!

http3/client_test.go Outdated Show resolved Hide resolved
http3/client_test.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Apr 21, 2024

Codecov Report

Attention: Patch coverage is 79.31034% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 84.68%. Comparing base (3e7ba77) to head (0ccf47b).

Files Patch % Lines
http3/client.go 79.31% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4437      +/-   ##
==========================================
- Coverage   84.68%   84.68%   -0.00%     
==========================================
  Files         152      152              
  Lines       14384    14409      +25     
==========================================
+ Hits        12180    12201      +21     
- Misses       1701     1703       +2     
- Partials      503      505       +2     

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

@marten-seemann marten-seemann merged commit 86b53a2 into quic-go:master Apr 21, 2024
19 checks passed
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.

http3.RoundTripper unable to process 1xx response
2 participants