0

Comet Push and Session timeout

asked 2010-05-03 18:18:28 +0800

windeyu gravatar image windeyu flag of United States
288 3

updated 2010-05-03 18:18:52 +0800

We use Server Push to update UIs. Will each server push keep the session alive by default? How can we configure whether the server push keep the session alive or not?

Thank you in advance.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-05-03 19:46:14 +0800

raigsingh gravatar image raigsingh
36

I think you can control timeout through zk.xml via session-timeout and timer-keep-alive:

	<session-config>
		<session-timeout>-1</session-timeout>
		<timer-keep-alive>true</timer-keep-alive>
		<max-desktops-per-session>15</max-desktops-per-session>
		<max-requests-per-session>5</max-requests-per-session>
		<max-pushes-per-session>-1</max-pushes-per-session>
	</session-config>

link publish delete flag offensive edit

answered 2010-05-03 19:47:23 +0800

SimonPai gravatar image SimonPai
1696 1

Hi windeyu,

Since ZK5, the timer does not intervene session timeout by default. You can change the setting in your zk.xml.
Please refer to Appendix B (timer-keep-alive)

Regards,
Simon

link publish delete flag offensive edit

answered 2010-05-06 01:44:53 +0800

windeyu gravatar image windeyu flag of United States
288 3

Does "timer-keep-alive" also control the timeout on CometServerPush over a persistent HTTP connection between server and client?

Thanks.

link publish delete flag offensive edit

answered 2010-05-09 20:09:26 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Yes, it also control the timeout on CometServerPush

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-05-03 18:18:28 +0800

Seen: 592 times

Last updated: May 09 '10

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