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

implement HTTP/3 control stream handling #2949

Merged
merged 4 commits into from
Dec 23, 2020
Merged

Conversation

marten-seemann
Copy link
Member

We'll need this if we ever want to read the SETTINGS frame. This frame is used to negotiate HTTP/3 extensions.

@codecov
Copy link

codecov bot commented Dec 21, 2020

Codecov Report

Merging #2949 (808671e) into master (9693a46) will increase coverage by 0.35%.
The diff coverage is 88.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2949      +/-   ##
==========================================
+ Coverage   86.04%   86.39%   +0.35%     
==========================================
  Files         134      134              
  Lines        9286     9790     +504     
==========================================
+ Hits         7990     8458     +468     
- Misses        938      968      +30     
- Partials      358      364       +6     
Impacted Files Coverage Δ
http3/server.go 67.07% <88.00%> (+2.18%) ⬆️
http3/client.go 88.16% <88.46%> (+1.23%) ⬆️
http3/error_codes.go 100.00% <0.00%> (ø)
streams_map.go 93.69% <0.00%> (+0.06%) ⬆️
packet_packer.go 85.16% <0.00%> (+0.65%) ⬆️
client.go 79.69% <0.00%> (+1.18%) ⬆️
internal/wire/transport_parameters.go 90.66% <0.00%> (+2.23%) ⬆️
session.go 81.20% <0.00%> (+3.91%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9693a46...808671e. Read the comment docs.

for {
str, err := sess.AcceptUniStream(context.Background())
if err != nil {
return
Copy link
Member

Choose a reason for hiding this comment

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

Can/should we somehow handle the error? Log at least?

Copy link
Member

Choose a reason for hiding this comment

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

Same for the other exit points in this fn.

http3/client.go Show resolved Hide resolved
for {
str, err := c.session.AcceptUniStream(context.Background())
if err != nil {
return
Copy link
Member

Choose a reason for hiding this comment

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

Handle / log the error?

Copy link
Member

Choose a reason for hiding this comment

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

Same below

@marten-seemann marten-seemann merged commit f68dfd5 into master Dec 23, 2020
@marten-seemann marten-seemann deleted the http3-control-streams branch December 23, 2020 08:02
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
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.

2 participants