Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Synchronous request and response IO to be disallowed by default #252
Starting in ASP.NET Core 2.0.0 RTM, synchronous request and response IO will be disallowed by default.
Synchronous IO hasn't been disallowed by default yet. After 2.0.0-preview2, there will be changes to both Kestrel and HttpSysServer to disallow this. Both servers will have a property added to their respective Options classes to globally allow synchronous IO.
Note: This change only impacts the request and response Stream APIs.
Please use aspnet/ServerTests#86 for further discussion.
We're closing this issue/announcement for now due to incompatibilities this introduces with existing BCL types that are either difficult or impossible to work around without fully buffering. We hope to introduce this breaking change in a future major release.
Feel free to continue using aspnet/ServerTests#86 for discussion.