[jifty-devel] View rendering timeout

Thomas Sibley trs at bestpractical.com
Fri Mar 4 11:42:45 EST 2011


On 04 Mar 2011 11:29, Stanislav Sinyagin wrote:
> hi,
> 
> inside my view template, I do some SQL querying which may take up to several 
> dozens of seconds.
> 
> When I refresh the region after the submit button's onclick event, and the 
> refresh takes longer than 30 seconds, I get the error pop-up that the server is 
> unreachable.
> 
> What are the ways around this? Can I increase the default timeout? 

Jifty's region requests go through jQuery.ajax().  You can call
jQuery.ajaxSetup({ timeout: 60000 }) to set a higher default timeout (in
ms).

> Or maybe there's a better way to asynchronously deliver some long query results?

Jifty does support Comet via PubSub, but that may not be what you want.

Thomas


More information about the jifty-devel mailing list