Skip to content

Commit aa08731

Browse files
authored
Merge pull request #18702 from github/lower-req-timeout
reduce max request timeout to 10 seconds
2 parents 52f0a93 + 51bb9d4 commit aa08731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/timeout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const timeout = require('express-timeout-handler')
22

33
// Heroku router requests timeout after 30 seconds. We should stop them earlier!
4-
const maxRequestTimeout = parseInt(process.env.REQUEST_TIMEOUT, 10) || 25000
4+
const maxRequestTimeout = parseInt(process.env.REQUEST_TIMEOUT, 10) || 10000
55

66
module.exports = timeout.handler({
77
// Default timeout for all endpoints

0 commit comments

Comments
 (0)