Edit Page
req.setTimeout()
Time out this request if a response is not sent within the specified number of milliseconds.
Usage
#
req.setTimeout(numMilliseconds);
Example
#
To cause requests to a particular action to time out after 4 minutes:
req.setTimeout(240000);
Notes
#
- By default, normal HTTP requests to Node.js/Express/Sails.js apps time out after 2 minutes (120000 milliseconds) if a response is not sent.
Is something missing?
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.