[Kss-devel] KSS timeout

Alec Mitchell apm13 at columbia.edu
Thu Sep 27 17:54:38 CEST 2007


This may be a case where a simple workaround would be useful.  You can
add an error handler that submits the form directly if the server
action fails (e.g. with a timeout).  It's not ideal because it means
the expensive search is performed twice, and the user has to wait for
the timeout before the search starts again, but it's easy to
implement.

actionname-error: plone-submitCurrentForm;

However, I question the purpose of using AJAX for requests that
potentially take a long time to complete.  Generally the purpose of
these things is to make for a more responsive ui, but when the
requests take more that a couple seconds I think AJAX can be pretty
counter-intuitive (even with a progress spinner, though a fancy
progress bar would help, even if it might be difficult to get right).
Perhaps the KSS action can be turned off when the "large number of
users" flag is enabled?

Alec

On 9/26/07, Balazs Ree <ree at ree.hu> wrote:
> On Thu, 27 Sep 2007 00:30:24 +0100 Martin Aspeli wrote:
>
> > Is there a simple way to increase the KSS timeout? The 'sharing' tab on
> > my instance times out (silently unless portal_javascripts is in debug
> > mode!) when using an LDAP repository because the LDAP search takes too
> > long. :)
>
> There is surrently an unsupported way only. By increasing the value
>
>     // sending timeout in millisecs
>     kukit.rm.RequestManager.prototype.sendingTimeout = 8000;
>
> in requestmanager.js, you can increase the timeout globally.
>
> In the future this will be settable as a kss action parameter on the
> server action. I plan to implement this soon.
>
> --
> Balazs Ree
>
> _______________________________________________
> Kss-devel mailing list
> Kss-devel at codespeak.net
> http://codespeak.net/mailman/listinfo/kss-devel
>


More information about the Kss-devel mailing list