Skip to content

[HTTP/3] Set EOS for 0-length response payload - #60120

Merged
ManickaP merged 1 commit into
dotnet:mainfrom
ManickaP:mapichov/h3_fix_0length
Oct 7, 2021
Merged

[HTTP/3] Set EOS for 0-length response payload#60120
ManickaP merged 1 commit into
dotnet:mainfrom
ManickaP:mapichov/h3_fix_0length

Conversation

@ManickaP

@ManickaP ManickaP commented Oct 7, 2021

Copy link
Copy Markdown
Member

Since we issue AbortRead from Http3RequestStream.Dispose in case we haven't consumed the stream till the end, we need to set the EOF for an empty response content as well.
This is the same logic as we do in normal DATA frame reading logic. Once EOS is reached, we set _responseDataPayloadRemaining to -1.

Discovered and the fix validated while working #56310.

@ghost ghost added the area-System.Net.Http label Oct 7, 2021
@ghost

ghost commented Oct 7, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Since we issue AbortRead from Http3RequestStream.Dispose in case we haven't consumed the stream till the end, we need to set the EOF for an empty response content as well.
This is the same logic as we do in normal DATA frame reading logic. Once EOS is reached, we set _responseDataPayloadRemaining to -1.

Discovered and the fix validated while working #56310.

Author: ManickaP
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@CarnaViire CarnaViire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@ManickaP
ManickaP merged commit 701c042 into dotnet:main Oct 7, 2021
@ManickaP
ManickaP deleted the mapichov/h3_fix_0length branch October 7, 2021 15:43
@karelz karelz added this to the 7.0.0 milestone Oct 14, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants