PDA

View Full Version : Ext.Ajax.Timeout maximal value



santic
21 Apr 2011, 9:27 PM
Hi all,

I know here is a topic created regarding this issue already, but there is not shown the final solution, so I would like to ask some of you if you don't know what is the maximal value for setting AJAX request timeout... For now it looks like it is "only" 1 hour and, how to tell it, it is not enough for our customers solution right now... I'm trying to set it through the Ext.Ajax.Timeout for all the requests...

Thanks for any help

mcadirci
21 Apr 2011, 10:11 PM
What you mean with only one hour timeout =)

Why you need that?

santic
21 Apr 2011, 10:20 PM
Ok, customer has existing solution which works and my ONLY question is if it's possible to set Ext.Ajax.Timeout higher than 1 hour ;)

mcadirci
21 Apr 2011, 10:34 PM
You should give any number from the config.

But I am not sure your web server keep a request like one hour or more.

If I were you I would make requests per 5 min. Every request return timeout message at server side like:
{success:true,status:'timeout'}
if there is smt else

{
success:true,
status:'newData',
data:[
{name:'firstData',value:23},
{name:'secondData',value:12}
]
}