diff --git a/packages/bp/src/core/app/server.ts b/packages/bp/src/core/app/server.ts index 0431ad603d..6274a75c08 100644 --- a/packages/bp/src/core/app/server.ts +++ b/packages/bp/src/core/app/server.ts @@ -246,8 +246,14 @@ export class HTTPServer { console.log({ keepAliveTimeout }) if (keepAliveTimeout && Number.isInteger(keepAliveTimeout)) { - console.log('will use: of ' + { keepAliveTimeout }) + console.log('will use keepAliveTimeout of ' + keepAliveTimeout) this.httpServer.keepAliveTimeout = keepAliveTimeout + + // https://adamcrowder.net/posts/node-express-api-and-aws-alb-502/ + // https://github.com/nodejs/node/issues/27363 + this.httpServer.headersTimeout = keepAliveTimeout + 1000 + + console.log('headersTimeout, will use ' + this.httpServer.headersTimeout) } await this.mediaRouter.initialize()