Update 22-to-30.md

pull/22397/head
Rick Anderson 2021-05-25 05:18:35 -10:00 committed by GitHub
parent 4be5dbbe72
commit 4a9dd40be7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ Connection Adapters (`Microsoft.AspNetCore.Server.Kestrel.Core.Adapter.Internal.
* Have been moved from Connection Adapters to Connection Middleware.
* These extension methods work as in previous versions of ASP.NET Core.
For more information, see [the TlsFilterConnectionHandler example in the ListenOptions.Protocols section of the Kestrel article](../fundamentals/servers/kestrel.md?view=aspnetcore-3.0#listenoptionsprotocols).
For more information, see [the TlsFilterConnectionHandler example in the ListenOptions.Protocols section of the Kestrel article](../fundamentals/servers/kestrel.md#listenoptionsprotocols).
### Transport abstractions moved and made public
@ -411,7 +411,7 @@ For more information, see [Put request trailers in a separate collection (dotnet
### AllowSynchronousIO disabled
`AllowSynchronousIO` enables or disables synchronous I/O APIs, such as `HttpRequest.Body.Read`, `HttpResponse.Body.Write`, and `Stream.Flush`. These APIs are a source of thread starvation leading to app crashes. In 3.0, `AllowSynchronousIO` is disabled by default. For more information, see [the Synchronous I/O section in the Kestrel article](../fundamentals/servers/kestrel.md?view=aspnetcore-3.0#synchronous-io).
`AllowSynchronousIO` enables or disables synchronous I/O APIs, such as `HttpRequest.Body.Read`, `HttpResponse.Body.Write`, and `Stream.Flush`. These APIs are a source of thread starvation leading to app crashes. In 3.0, `AllowSynchronousIO` is disabled by default. For more information, see [the Synchronous I/O section in the Kestrel article](../fundamentals/servers/kestrel.md#synchronous-io).
If synchronous I/O is needed, it can be enabled by configuring the `AllowSynchronousIO` option on the server being used (when calling `ConfigureKestrel`, for example, if using Kestrel). Note that servers (Kestrel, HttpSys, TestServer, etc.) all have their own `AllowSynchronousIO` option that won't affect other servers. Synchronous I/O can be enabled for all servers on a per-request basis using the `IHttpBodyControlFeature.AllowSynchronousIO` option: