diff --git a/package.json b/package.json index c70112d..0c2bf3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/lib", - "version": "0.9.11", + "version": "0.9.12", "description": "The framework library that lifts up your code.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/service/HTTPServer.ts b/src/service/HTTPServer.ts index c50a2cd..ca7f8d1 100644 --- a/src/service/HTTPServer.ts +++ b/src/service/HTTPServer.ts @@ -87,13 +87,13 @@ export class HTTPServer extends Unit { public get handler(): RequestListener { // const timeout = this.config.get('server.timeout', 10000) - const timeout = 0 // temporarily disable this because it is causing problems + // const timeout = 0 // temporarily disable this because it is causing problems return async (request: IncomingMessage, response: ServerResponse) => { const extolloReq = new Request(request, response) await this.requestLocalStorage.run(extolloReq, async () => { - withTimeout(timeout, extolloReq.response.sent$.toPromise()) + /* withTimeout(timeout, extolloReq.response.sent$.toPromise()) .onTime(() => { this.logging.verbose(`Request lifecycle finished on time. (Path: ${extolloReq.path})`) }) @@ -114,7 +114,7 @@ export class HTTPServer extends Unit { extolloReq.response.send() }) .run() - .catch(e => this.logging.error(e)) + .catch(e => this.logging.error(e))*/ try { await this.kernel.handle(extolloReq)