1

I have put the following inside Application.js:

Ext.Ajax.setTimeout(300000);
Ext.override(Ext.data.proxy.Server, { timeout: Ext.Ajax.getTimeout() });

My store still timeouts after 30s.

herme 0
  • 912
  • 1
  • 9
  • 23

1 Answers1

1

You do need to override it for both ajax/proxy, however you override the one for ajax via the Connection. In your code, for the proxy you've overridden the timeout to be a function reference.

Ext.define(null, {
  override: 'Ext.data.Connection',
  timeout: 1
});

Ext.define(null, {
  override: 'Ext.data.proxy.Server',
  config: {
    timeout: 1
  }
});
Evan Trimboli
  • 29,900
  • 6
  • 45
  • 66