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

comet implementations inconsistent configuration/behavior

XMLWordPrintable

    • ZK 9.0.1 S1
    • None

      Steps to Reproduce

      test with PE comet and EE comet to observe differences

        <!-- comment out for EE comet (async) -->
      	<device-config>
      		<device-type>ajax</device-type>
      		<server-push-class>org.zkoss.zkex.ui.comet.CometServerPush</server-push-class>
      	</device-config>
      
      	<preference>
      		<name>CometServerPush.retry.delay</name>
      		<value>3000</value><!-- 3 seconds delay between each retry-->
      	</preference>
      	<preference>
      		<name>CometServerPush.retry.count</name>
      		<value>3</value><!-- 3 tries for each request -->
      	</preference>
      	<preference>
      		<name>CometServerPush.ajax.timeout</name>
      		<value>5000</value><!-- 5 sec -->
      	</preference>
      

      Current Result

      the EE comet stops polling after timing out 3 times as configured
      the PE comet continues polling forever

      Expected Result

      consistent behavior for the same configuration

      TBD whether the configured (expected) timeout should increment the retry count or not

      Debug Information


      Workaround


            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 5 hours Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - 5 hours Remaining Estimate - 3 hours
                5h