U4-396 - Keep Alive request bloat

Created by Sebastiaan Janssen 19 Aug 2012, 14:52:32 Updated by Shannon Deminick 21 Jun 2017, 07:52:13

The new keep alive feature in polls the server with an AJAX request in a bloated and unnecessary manner. From what I understand, it should be possible to rewrite it in the following manner:

  1. When umbraco.aspx is opened, it polls the GetSecondsBeforeUserLogout service at onload to find out the minimum time left the session will be valid.
  2. The timeout in the Javascript should thus be set to a little less than the amount of time this first call returns, and not every 10 seconds.
  3. If the user opens a new tab, we start over again back at #1.

This will minimize the amount of AJAX requests to the bare minimum. As it is now, it's overloading both the client and the server with a ton of needless requests, serving no real purpose that I can see.

Please correct me if I'm wrong, if there's something I've overlooked.

''Originally created on CodePlex by [cuba|http://www.codeplex.com/site/users/view/cuba]'' on 5/12/2011 8:06:32 PM [Codeplex ID: 30300 - Codeplex Votes: 13]

Imported comments

''Comment by [Myster|http://www.codeplex.com/site/users/view/Myster] on 5/13/2011 12:59:01 AM:'' One scenario the 10 second poll covers is server resets. this means users don't lose their work if the server resets (unless they submit within 10 seconds of the server reset).

This is particularly relevant in dev / test phases when restarts are common, and potentially most of the content editing is occurring.

However I think this could be dealt with by firing a keep-alive request async on click, before any significant actions are performed (such as save or save and publish, eg actions that may have a lot of user time invested)

''Comment by [Myster|http://www.codeplex.com/site/users/view/Myster] on 5/13/2011 1:05:28 AM:'' perhaps configuring the default polling time would be good, then for stable environments we can increase it.

''Comment by [gdycus|http://www.codeplex.com/site/users/view/gdycus] on 5/31/2011 4:23:57 PM:'' If I login to Umbraco and leave it idle for several hours, FireFox becomes unusable. Usually I have to kill the process once FireFox's memory usage gets up over 2 million k. This is a big problem for our content editors. Thanks!

Comments

Shannon Deminick 21 Jun 2017, 07:52:14

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: