0

DesktopCleanup

asked 2019-11-21 12:12:18 +0800

mfinis gravatar image mfinis
3

updated 2019-11-21 15:22:22 +0800

cor3000 gravatar image cor3000
6280 2 7

Hi, how are you? I have a problem in my application with zk 8, when opening more than 5 windows, I don't execute the cleaning method of the DesktopCleanup class. The browser features are: Internet Explorer 11 Windows 7. The same application with zk 5 I have no problem works correctly.

delete flag offensive retag edit

Comments

removed the '!!!!!!' no need to shout, we still hear you

cor3000 ( 2019-11-21 15:23:34 +0800 )edit

Does this only affect IE11 or also other browsers? Are you using any kind of comet server pushes? Some browsers have tight connection limits possibly blocking the rmDesktop request when a browser closes during onBeforeUnload.

cor3000 ( 2019-11-21 15:28:09 +0800 )edit

thank you very much, the topic is just what you say, internet explorer 11 has limit connections.

mfinis ( 2019-11-26 07:40:47 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-11-26 09:38:40 +0800

cor3000 gravatar image cor3000
6280 2 7

ok if you're running into such limits, then you can limit the number of desktops per session.

https://www.zkoss.org/wiki/ZK%20Configuration%20Reference/zk.xml/The%20session-config%20Element/The%20max-desktops-per-session%20Element

E.g. if you limit this to 5 then older (LRU) desktops are removed when you open more than 5 browser tabs. At least this ensures your DesktopCleanup listeners are called, even if the browser can no longer connect and send those "rmDesktop" requests.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2019-11-21 12:12:18 +0800

Seen: 10 times

Last updated: Nov 26 '19

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More