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: move length limiting to the body #4439

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

marten-seemann
Copy link
Member

The length limit is a property of the (request and response) body. As such, it's better implemented there than by wrapping the HTTP stream.

Needed for the refactor for #3522.

Copy link

codecov bot commented Apr 16, 2024

Codecov Report

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

Project coverage is 84.75%. Comparing base (29785b2) to head (07bfe66).

Files Patch % Lines
http3/http_stream.go 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4439      +/-   ##
==========================================
+ Coverage   84.72%   84.75%   +0.03%     
==========================================
  Files         152      152              
  Lines       14369    14372       +3     
==========================================
+ Hits        12173    12180       +7     
+ Misses       1693     1691       -2     
+ Partials      503      501       -2     

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

The length limit is a property of the (request and response) body. As
such, it's better implemented there than by wrapping the HTTP stream.
@marten-seemann marten-seemann merged commit 457ac2c into master Apr 17, 2024
33 of 34 checks passed
@marten-seemann marten-seemann deleted the http3-length-limit-body branch April 17, 2024 08:27
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.

None yet

1 participant