Skip to content

Commit

Permalink
add headersTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvitora committed Nov 20, 2023
1 parent 51dd5ad commit 5109051
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/bp/src/core/app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5109051

Please sign in to comment.