Bug 1568353 - set the default rest.js timeout to be 5 minutes. r=rfkelly

Differential Revision: https://phabricator.services.mozilla.com/D40927

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Hammond 2019-08-07 05:25:49 +00:00
parent 12640bca82
commit 05df0254b8

View File

@ -162,9 +162,10 @@ RESTRequest.prototype = {
* Request timeout (in seconds, though decimal values can be used for
* up to millisecond granularity.)
*
* 0 for no timeout.
* 0 for no timeout. Default is 300 seconds (5 minutes), the same as Sync uses
* in resource.js.
*/
timeout: null,
timeout: 300,
/**
* The encoding with which the response to this request must be treated.