Skip to content

Conversation

@JamesNK
Copy link
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
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
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);
}

}
finally
{
// If Shutdown() has already bee called, assume that was the reason ProcessReceives() exited.
Copy link
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
Member Author

JamesNK commented Aug 19, 2021

/backport to main

@github-actions
Copy link
Contributor

Started backporting to main: https://github.com/dotnet/aspnetcore/actions/runs/1145307320

@JamesNK
Copy link
Member Author

JamesNK commented Aug 19, 2021

/backport to release/6.0-rc1

@github-actions
Copy link
Contributor

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

@JamesNK
Copy link
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.

5 participants