kopia lustrzana https://github.com/c9/core
document req timeout
rodzic
aac904b65e
commit
60360f8598
|
@ -1,3 +1,8 @@
|
||||||
|
/**
|
||||||
|
* 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) {
|
module.exports = function(timeout) {
|
||||||
return function(req, res, next) {
|
return function(req, res, next) {
|
||||||
req.setTimeout(timeout);
|
req.setTimeout(timeout);
|
||||||
|
|
Ładowanie…
Reference in New Issue