8

With the following WebHost setup (notice KeepAliveTimeout):

return WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .UseKestrel(x => x.Limits.KeepAliveTimeout = TimeSpan.FromSeconds(1))
                .Build();

we expect to have kestrel kill the request (given execution lasts more than 1 second) and see an error code returned. However, it seems to do nothing.

What are we missing?

steamrolla
  • 2,373
  • 1
  • 29
  • 39

0 Answers0