Skip to content

Commit

Permalink
Merge pull request #49 from akkeris/keep-alive-timeout-increase
Browse files Browse the repository at this point in the history
increase keep alive timeout to 6 minutes
  • Loading branch information
sbeck14 authored Jan 28, 2021
2 parents 137993e + 2e8dfec commit 506d661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,7 @@ process.on('uncaughtException', (err) => {

oauth.init();

app.listen(process.env.PORT || 5000);
const server = app.listen(process.env.PORT || 5000);
server.keepAliveTimeout = 1000 * (60 * 6); // 6 minutes

console.log(`Listening on ${process.env.PORT || 5000}`);

0 comments on commit 506d661

Please sign in to comment.