From 369a25bb725b4568a232b05fc8b0596af9a53e89 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 23 Oct 2018 18:34:51 -0500 Subject: [PATCH] ANCM: Detect client disconnects and logging (#9180) --- .../host-and-deploy/aspnet-core-module.md | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/aspnetcore/host-and-deploy/aspnet-core-module.md b/aspnetcore/host-and-deploy/aspnet-core-module.md index 2491aa85cf..bdc667b13e 100644 --- a/aspnetcore/host-and-deploy/aspnet-core-module.md +++ b/aspnetcore/host-and-deploy/aspnet-core-module.md @@ -43,6 +43,8 @@ The following characteristics apply when hosting in-process: * If setting up the app's host manually with `WebHostBuilder` (not using [CreateDefaultBuilder](xref:fundamentals/host/web-host#set-up-a-host)) and the app is ever run directly on the Kestrel server (self-hosted), call `UseKestrel` before calling `UseIISIntegration`. If the order is reversed, the host fails to start. +* Client disconnects are detected. The [HttpContext.RequestAborted](xref:Microsoft.AspNetCore.Http.HttpContext.RequestAborted*) cancellation token is cancelled when the client disconnects. + ### Hosting model changes If the `hostingModel` setting is changed in the *web.config* file (explained in the [Configuration with web.config](#configuration-with-webconfig) section), the module recycles the worker process for IIS. @@ -149,7 +151,7 @@ See [Sub-application configuration](xref:host-and-deploy/iis/index#sub-applicati | Attribute | Description | Default | | --------- | ----------- | :-----: | -| `arguments` |
Optional string attribute.
Arguments to the executable specified in **processPath**.
| | +| `arguments` |Optional string attribute.
Arguments to the executable specified in **processPath**.
| | | `disableStartUpErrorPage` |Optional Boolean attribute.
If true, the **502.5 - Process Failure** page is suppressed, and the 502 status code page configured in the *web.config* takes precedence.
| `false` | | `forwardWindowsAuthToken` |Optional Boolean attribute.
If true, the token is forwarded to the child process listening on %ASPNETCORE_PORT% as a header 'MS-ASPNETCORE-WINAUTHTOKEN' per request. It's the responsibility of that process to call CloseHandle on this token per request.
| `true` | | `hostingModel` |Optional string attribute.
Specifies the hosting model as in-process (`inprocess`) or out-of-process (`outofprocess`).
| `outofprocess` | @@ -303,6 +305,50 @@ The following sample `aspNetCore` element configures stdout logging for an app h ::: moniker-end +::: moniker range=">= aspnetcore-2.2" + +## Enhanced diagnostic logs + +The ASP.NET Core Module provides is configurable to provide enhanced diagnostics logs. Add the `