Skip to content

[release/6.0] HTTP/3: Use new QuicStream.ReadsCompleted property in transport#35476

Closed
JamesNK wants to merge 1 commit intorelease/6.0from
jamesnk/http3-readscompleted
Closed

[release/6.0] HTTP/3: Use new QuicStream.ReadsCompleted property in transport#35476
JamesNK wants to merge 1 commit intorelease/6.0from
jamesnk/http3-readscompleted

Conversation

@JamesNK
Copy link
Copy Markdown
Member

@JamesNK JamesNK commented Aug 18, 2021

Fixes #35399 Made this change in this branch first because main hasn't gotten latest runtime bits yet.

Copy link
Copy Markdown
Member

@Tratcher Tratcher left a comment

Choose a reason for hiding this comment

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

Does the Http/3 layer need any adjustments, or should that just work?

@JamesNK
Copy link
Copy Markdown
Member Author

JamesNK commented Aug 19, 2021

HTTP/3 layer will just work. It is already using the ReadResult.IsCompleted flag here:

while (Http3FrameReader.TryReadFrame(ref readableBuffer, _incomingFrame, out var framePayload))
{
Log.Http3FrameReceived(ConnectionId, _streamIdFeature.StreamId, _incomingFrame);
consumed = examined = framePayload.End;
await ProcessHttp3Stream(application, framePayload, result.IsCompleted && readableBuffer.IsEmpty);
}

@@ -240,12 +263,23 @@ private async Task DoReceive()
finally
{
// If Shutdown() has already bee called, assume that was the reason ProcessReceives() exited.
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.

not new code, but typo: "bee" -> "been"

@JamesNK
Copy link
Copy Markdown
Member Author

JamesNK commented Aug 19, 2021

/backport to main

@github-actions
Copy link
Copy Markdown
Contributor

@JamesNK
Copy link
Copy Markdown
Member Author

JamesNK commented Aug 19, 2021

/backport to release/6.0-rc1

@github-actions
Copy link
Copy Markdown
Contributor

Started backporting to release/6.0-rc1: https://github.com/dotnet/aspnetcore/actions/runs/1145308311

@JamesNK
Copy link
Copy Markdown
Member Author

JamesNK commented Aug 19, 2021

Closing this PR and have changes be merged from RC1 into back into 6.0 automatically.

@JamesNK JamesNK closed this Aug 19, 2021
@dougbu dougbu deleted the jamesnk/http3-readscompleted branch August 21, 2021 22:32
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants