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

#

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.

Reference

Reference