Skip to content

WebHostOptions default ShutdownTimeout does not match HostOptions default ShutdownTimeout #48605

@hwoodiwiss

Description

@hwoodiwiss

Describe the bug

The default value for ShutdownTimeout in Microsoft.Extensions.Hosting.HostOptions was updated to 30 seconds as part of dotnet/runtime#63709

The default value for ShutdownTimeout in WebHostOptions should be made consistent with this so that the default shutdown behaviour is consistent for services using GenericWebHostService and WebHost.

Expected Behavior

Default values for HostOptions.ShutdownTimeout and WebHostOptions.ShutdownTimeout should match for consistent stopping behaviour across both when ShutdownTimeout has not been set via configuration (Config for key: shutdownTimeoutSeconds)

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions