I have an application written with a basic HTML/CSS/Javascript front end, and sending AJAX requests using EXTJS to .NET ASHX handlers. One particular request can take a long time to execute, and it appears to be getting cut off at exactly 30 seconds. How do I go about adjusting this timeout value?
Here is what I’ve tried/discovered.
- It functions the same in multiple browsers (Chrome, IE, Firefox), so
I assume it is a configuration on the server side. - I’ve looked through the IIS configuration and found a timeout that appears to be
for session timeouts and it’s set to 120 (minutes I presume). - The request works fine when a smaller data set is requested, so there
are no other known programming bugs causing this specific issue.
Some more digging around in the EXTJS documentation shed light on the problem: The default timeout for an EXTJS AJAX request is 30 seconds, and can be overridden with the timeout property. http://dev.sencha.com/deploy/ext-3.3.1/docs/
Also worth nothing that this stackoverflow question/answer tipped me off. It relates to JQuery but I figured EXTJS couldn’t be much different: Chrome timeout Ajax request after 120 seconds?