Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3358

Drain SseEventSink queue on close with flush

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 6.2.5.Final, 7.0.0.Alpha1
    • 6.2.4.Final
    • Core
    • None

      When calling close on SseEventSink, it is possible to miss events that are still in the queue, because they are still waiting on output completion before being drained. Currently, the close method clears all events from the queue.

      I noticed this by running the TCK on Quarkus, which sends the even in a try / close block. It seems the Vert.x writer gets deferred and in the meanwhile the close from the try kicks in and clears the events.

            jperkins-rhn James Perkins
            radcortez@yahoo.com Roberto Cortez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: