Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1777

Server Push does not initialize when recycling


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.4
    • 6.5.2
    • General
    • Security Level: Jimmy
    • Xubuntu 12.10
      Jetty 8.1.9
      Java version "1.7.0_21"
      OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
      OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

      With DesktopRecycle, server push is not correctly started and does not work. The problem is that at enableServerPush0() of DesktopImpl, the Desktop already has _spush and therefore the initialization stage is omitted.

      This initialization stage calls the start() method of ServerPush, which in the case of PollingServerPush calls startClientPush(), which sends the start script to the client. The result is that the new/reloaded window does not receive the start script and never starts polling.

      I think the solution should be to split the sending of the start script from the initialization. At least in the case of PollingServerPush, the start script should always be sent.

            cor3000 cor3000
            zhvihti zhvihti
            0 Vote for this issue
            0 Start watching this issue