Skip to content

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Apr 14, 2021

Fixes #31777

@JamesNK JamesNK requested a review from jkotalik April 14, 2021 00:21
@ghost ghost added the area-runtime label Apr 14, 2021
Comment on lines +517 to +522
// If the stream is complete after receiving the headers then run OnEndStreamReceived.
// If there is a bad content length then this will throw before the request delegate is called.
if (isCompleted)
{
await OnEndStreamReceived();
}
Copy link
Member Author

@JamesNK JamesNK Apr 14, 2021

Choose a reason for hiding this comment

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

This matches HTTP/2 behavior which validates content-length if end stream is received with HEADERS frame. Validation here prevents the RequestDelegate from executing if invalid.

@JamesNK
Copy link
Member Author

JamesNK commented Apr 15, 2021

@halter73 @jkotalik Please review 🙏

@JamesNK JamesNK merged commit 7f6eaba into main Apr 15, 2021
@JamesNK JamesNK deleted the jamesnk/flakeytest-http3-contentlength branch April 15, 2021 23:25
@ghost ghost added this to the 6.0-preview4 milestone Apr 15, 2021
@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.

Flaky test - ContentLength_Received_NoDataFrames_Reset
3 participants