Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express response setTimeout

app.use(function(req, res, next){
  	// Default is 2 minutes
    req.setTimeout(500000 /* in ms */, function(){
        // call back function is called when request timed out.
    });

    next();
});
 
PREVIOUS NEXT
Tagged: #express #response #setTimeout
ADD COMMENT
Topic
Name
2+8 =