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

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

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.0.1
    • Fix Version/s: 8.0.2
    • Component/s: ZK Client Engine
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 8.0.2 S2

      Description

      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.")

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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