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

Server Push does not initialize when recycling

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.4
    • Component/s: General
    • Security Level: Jimmy
    • Labels:
    • Environment:

      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)

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              cor3000 cor3000
              Reporter:
              zhvihti zhvihti
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: