From afdabc8bf597173db20ae00d63988dc2570ce6ae Mon Sep 17 00:00:00 2001 From: Fredrik C <45489326+fredrikcarlbom@users.noreply.github.com> Date: Wed, 20 Mar 2024 00:56:49 +0100 Subject: [PATCH] ShutdownTimeout default value in documentation (#32070) Update the default value for ShutdownTimeout according to https://github.com/dotnet/runtime/blob/v8.0.3/src/libraries/Microsoft.Extensions.Hosting/src/HostOptions.cs#L24 --- aspnetcore/fundamentals/host/generic-host.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/host/generic-host.md b/aspnetcore/fundamentals/host/generic-host.md index 028c31bfff..dfdbc6b44c 100644 --- a/aspnetcore/fundamentals/host/generic-host.md +++ b/aspnetcore/fundamentals/host/generic-host.md @@ -196,7 +196,7 @@ If the timeout period expires before all of the hosted services stop, any remain **Key**: `shutdownTimeoutSeconds` **Type**: `int` -**Default**: 5 seconds +**Default**: 30 seconds **Environment variable**: `{PREFIX_}SHUTDOWNTIMEOUTSECONDS` To set this value, use the environment variable or configure `HostOptions`. The following example sets the timeout to 20 seconds: