diff --git a/src/FastGateway/Gateway/Gateway.cs b/src/FastGateway/Gateway/Gateway.cs index 959a3fb..1bbcbd1 100644 --- a/src/FastGateway/Gateway/Gateway.cs +++ b/src/FastGateway/Gateway/Gateway.cs @@ -247,6 +247,7 @@ public static class Gateway if (server.StaticCompress) builder.Services.AddResponseCompression(); + builder.Services.AddRequestTimeouts(); builder.Services .AddReverseProxy() @@ -326,6 +327,7 @@ public static class Gateway app.UseInitGatewayMiddleware(); + app.UseRequestTimeouts(); app.UseRateLimitMiddleware(rateLimits);