EsriRequest -- timeout option

2645
0
12-04-2014 05:43 PM
StevenKitterman1
New Contributor II

In the ArcGIS JavaScript API, there is the esri/request "class". One of the options when making an EsriRequest is to specify the timeOut parameter to override the default timeout of 60 seconds. My instantiation of EsriRequest looks like the following:

 

request = EsriRequest({

      url: url,

      callbackParamName: 'callback',

      timeOut: 10000,

      content: {

          f: 'json',

          token: token

      }

  },

  {

  disableIdentityLookup: true

  });

 

Everything works fine, except that it is still taking 60 seconds for my request to time out, instead of 10 as I specified.

 

Any ideas?

0 Replies