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

Implement configurable ajax-timeout/retry/retry-delay for Comet serverpush

XMLWordPrintable

    • ZK 8.0.2 S2
    • None

      The current Comet serverpush implementation uses the default ajax timeout and hardcoded values as a retry count (10), and retry delay(5000ms).

      In scenarios where long polling requests are interrupted by a proxy in the middle, it is helpful to customize those settings to avoid the comet functionality from stopping prematurely.
      (e.g. with a proxy timeout of 2 mins the comet server push will stop after ~20 mins of inactivity, and critical UI updates might be lost)

      see: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
      (NOTE: "In Internet Explorer, the timeout property may be set only after calling the open() method and before calling the send() method.")

            christopherszu christopherszu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m