Steps to Reproduce
Run a project with zk.xml config:
<listener> <listener-class&amp;gt;org.zkoss.zkmax.au.websocket.WebSocketWebAppInit</listener-class&amp;gt; </listener> <session-config> <max-desktops-per-session>1</max-desktops-per-session> <automatic-timeout/> <timeout-uri>/timeout.zul</timeout-uri> </session-config>
Open a tab.
Open the same page in a different tab.
Make an action in the first tab (click a button, etc) with an event listener.
Current Result
Tab waits on "processing..." forever.
Expected Result
Tab redirects to timeout URI
Debug Information
If desktop is null, DhtmlUpdateServlet uses wapp.getConfiguration().getTimeoutURI(deviceType) to redirect the page.
WebsocketEndpoint just returns without redirecting
Workaround
attached WebsocketEndpoint.zip
- relates to
-
ZK-4605 Automatic session timeout redirects unreliable with websockets enabled
- Open