Skip to content

Commit c4c5c59

Browse files
committed
reduce max request timeout to 10 seconds
1 parent 37cd5e6 commit c4c5c59

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)