1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Add temporary workaround for Error -4047 EPIPE broken pipe

This commit is contained in:
Maksym Pavlenko
2017-02-03 12:37:56 -08:00
parent b2fc06fb1c
commit 1865b2524b

View File

@@ -8,7 +8,15 @@ namespace Podsync
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel(options => options.AddServerHeader = false)
.UseKestrel(options =>
{
options.AddServerHeader = false;
// Temporary workaround for Error -4047 EPIPE broken pipe
// Remove this after upgrade to 1.1.0
// See https://github.com/aspnet/KestrelHttpServer/issues/1182
options.ThreadCount = 1;
})
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()