Skip to content

Commit

Permalink
add headers timeout (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvitora authored Dec 8, 2023
1 parent fc51a92 commit 6d78330
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bp/src/core/app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ export class HTTPServer {

if (keepAliveTimeout && Number.isInteger(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
}

await this.mediaRouter.initialize()
Expand Down

0 comments on commit 6d78330

Please sign in to comment.