Fix spelling of "timeout" in kestrel.shutdownTimeout
This commit is contained in:
parent
f0e438f65f
commit
aa17125f9e
|
|
@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel
|
|||
/// By default, Kestrel will wait 5 seconds for any ongoing requests to complete before terminating
|
||||
/// the connection.
|
||||
/// A custom timeout can be configured using the "kestrel.shutdownTimeout" key in <seealso cref="Microsoft.Extensions.Configuration.IConfiguration"/>.
|
||||
/// The value will be parsed as a float representing the timout in seconds.
|
||||
/// The value will be parsed as a float representing the timeout in seconds.
|
||||
/// </summary>
|
||||
TimeSpan ShutdownTimeout { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel
|
|||
|
||||
private TimeSpan GetShutdownTimeout(IConfiguration configuration)
|
||||
{
|
||||
var shutdownTimeoutString = configuration["kestrel.shutdownTimout"];
|
||||
var shutdownTimeoutString = configuration["kestrel.shutdownTimeout"];
|
||||
|
||||
float shutdownTimeout;
|
||||
if (float.TryParse(shutdownTimeoutString, NumberStyles.Float, CultureInfo.InvariantCulture, out shutdownTimeout))
|
||||
|
|
|
|||
Loading…
Reference in New Issue