PDA

View Full Version : [CLOSED] Unable to disable timeout in Ext.Ajax



ath
3 Dec 2010, 5:10 AM
We were hoping to be able to disable the timeout
in Ext.Ajax.request by setting the timeout property
to null. Looking at the code we can see that this
is not possible, even though it seems that this was
intended at some point. We have therefore concluded
that this must be a bug.

In ext-3.3.1:

If you look at the handleReadyState method of
src/adapter/ext-base-ajax.js (line 187) it checks that a
callback has been set and if not no timeout for the
request is set.

In the method request in file src/data/Connection.js line 219
the timeout is set to a number explicitly using Ext.num.

This means that it is not possible to disable timeout of an
Ext.Ajax request.

Ext version tested:

Ext 3.3.1


Adapter used:

ext


css used:

only default ext-all.css




Browser versions tested against:

Chrome 7


Operating System:

Ubuntu

Condor
3 Dec 2010, 5:14 AM
This is caused by this bugfix (http://www.sencha.com/forum/showthread.php?108721-FIXED-1251-Ext.data.Connection.request-doesn-t-support-timeout-0).

You should be using timeout:0 and not timeout:null.

ath
3 Dec 2010, 9:18 AM
Hi,

Thamks for your quick reply! i tested it and it works like you described.

I expected that setting the timeout to null would do the same.

Kombra
23 May 2014, 1:06 AM
This is caused by this bugfix (http://www.sencha.com/forum/showthread.php?108721-FIXED-1251-Ext.data.Connection.request-doesn-t-support-timeout-0).

You should be using timeout:0 and not timeout:null.

Hi Condor,

Setting Ajax timeout:0 is not disabling Default timeout(30 sec) in 4.2.2.
Please help me out to disable default timeout. (or to set timeout to infinite)