Skip to content

Fix flaky test ContentLength_Received_NoDataFrames_Reset #31787

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

Merged
merged 3 commits into from
Apr 15, 2021

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