From 6e63cdb31b87c3237bde132d0a01a09d9da299ba Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Fri, 30 Jul 2021 22:31:18 +0800 Subject: [PATCH] =?UTF-8?q?2s=E5=85=B3=E9=97=ADasp.net?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FastGithub/Program.cs b/FastGithub/Program.cs index 6a455f6..89da123 100644 --- a/FastGithub/Program.cs +++ b/FastGithub/Program.cs @@ -1,6 +1,7 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; +using System; using System.IO; namespace FastGithub @@ -41,6 +42,7 @@ namespace FastGithub .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); + webBuilder.UseShutdownTimeout(TimeSpan.FromSeconds(2d)); webBuilder.UseKestrel(kestrel => { kestrel.ListenHttpReverseProxy();