Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35175

Make SSE connection keep-alive configurable

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Minor Minor
    • sse-gateway-plugin
    • None
    • 1.0-m11, 1.0-m12

      Doing this should get rid of a scary (but harmless) looking browser console errors when the SSE connection is unexpectedly dropped e.g. by an intermediary proxy/gateway.

      By doing this periodically from the client side (disconnecting and reconnecting), we avoid the user seeing this.

      The error looks scary but is actually fine because the SSE EventSource auto-reconnects.

      Something to consider though .... we might need to do some sort of "store and forward" at the gateway for when messages arrive during a reconnect. See JENKINS-36238

            tfennelly Tom FENNELLY
            tfennelly Tom FENNELLY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: