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

Resteasy Server Sent Events should not reconnect when a 204 is recieved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.6.Final, 7.0.0.Alpha1
    • 4.7.0.Final
    • jaxrs
    • None
    • Hide

      A test application that reproduces this problem has been placed as an attachment to this issue:  test204.zip

      Please see the readme.md file in this zip for instructions.

      Show
      A test application that reproduces this problem has been placed as an attachment to this issue:  test204.zip Please see the readme.md file in this zip for instructions.
    • undefined

      The javadoc for sseeventsource states that upon receiving a 204 response status code, only onComplete should be invoked:

      ". 204 - This indicates that server has no events to send. Only onComplete is invoked."

      However, the current RestEasy implementation will reconnect continually.  

      The changes needed to correct this issue have been included in OpenLiberty under PR 18060

       

      This need is not currently tested within the TCK and therefore this change will produce a single TCK failure.   This test is currently being challenged under issue 1007 and a vote for this challenge has been placed by James Perkins of Redhat.

       

            jperkins-rhn James Perkins
            jim_krueger Jim Krueger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: