mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
11 lines
264 B
JavaScript
11 lines
264 B
JavaScript
/**
|
|
* the default response timeout in node.js is 2min. If a request takes longer
|
|
* to process then it needs to be increased
|
|
*/
|
|
|
|
module.exports = function(timeout) {
|
|
return function(req, res, next) {
|
|
req.setTimeout(timeout);
|
|
next();
|
|
};
|
|
}; |