Commit 5dfb2db6 authored by Diego Molteni's avatar Diego Molteni
Browse files

updated service timeouts

parent 8772dd75
...@@ -161,15 +161,17 @@ export class Server { ...@@ -161,15 +161,17 @@ export class Server {
// tslint:disable-next-line // tslint:disable-next-line
console.log(`- Server is listening on port ${this.port}...`); console.log(`- Server is listening on port ${this.port}...`);
}); });
this.httpsServer.keepAliveTimeout = 65 * 1000; this.httpServer.setTimeout(610000);
this.httpsServer.headersTimeout = 66 * 1000; this.httpsServer.keepAliveTimeout = 610 * 1000;
this.httpsServer.headersTimeout = 611 * 1000;
} else { } else {
this.httpServer = this.app.listen(this.port, () => { this.httpServer = this.app.listen(this.port, () => {
// tslint:disable-next-line // tslint:disable-next-line
console.log(`- Server is listening on port ${this.port}...`); console.log(`- Server is listening on port ${this.port}...`);
}); });
this.httpServer.keepAliveTimeout = 65 * 1000; this.httpServer.setTimeout(610000);
this.httpServer.headersTimeout = 66 * 1000; this.httpsServer.keepAliveTimeout = 610 * 1000;
this.httpsServer.headersTimeout = 611 * 1000;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment