set keepAliveTimeout after super.start

This commit is contained in:
Rory& committed 2026-10-19 12:50:08 +02:00
1 parent 58b991df58
commit 9915fe1ff6
1 file changed
+1 -1
+1 -1
View File
@@ -66,7 +66,6 @@ export class CDNServer extends Server {
if (trustedProxies) this.app.set("trust proxy", trustedProxies);
this.app.disable("x-powered-by");
this.http.keepAliveTimeout = 10000;
this.app.use(Authentication);
this.app.use(ErrorHandler);
@@ -82,6 +81,7 @@ export class CDNServer extends Server {
if (process.env.LOG_ROUTES !== "false") console.log("[Server] Route /guilds/:guild_id/users/:user_id/banners registered");
await super.start();
this.http.keepAliveTimeout = 10000; // can't be in configuration section because super.starts initialises it...
await SystemdLifecycle.setStatus(`Listening on ${this.options.host}:${this.options.port}...`);
await ProcessLifecycle.Ready();
}