Skip to content

Conversation

@Tratcher
Copy link
Member

@Tratcher Tratcher commented Oct 6, 2022

Fixes #41692

This is forward port of the TestServer patch from 6.0: #44020. This fix enabled zero-byte reads which is a pattern used by YARP.

I also looked for other streams that had this issue and changed them to use the standard validation method not available from the base Stream class. In a few places we rely directly on the validation done by AsMemory.

@Tratcher Tratcher added this to the 8.0-preview1 milestone Oct 6, 2022
@Tratcher Tratcher self-assigned this Oct 6, 2022
@Tratcher Tratcher requested a review from wtgodbe October 7, 2022 17:41
@Tratcher Tratcher enabled auto-merge (squash) October 7, 2022 18:40
@Tratcher Tratcher merged commit c0a8acb into dotnet:main Oct 7, 2022
@Tratcher Tratcher deleted the tratcher/streamvalidation branch October 7, 2022 19:17
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares 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-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares 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.

TestHost response body does not support 0-byte reads

3 participants