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

Async IO issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.5.2.Final
    • None
    • None
    • None

    Description

      https://github.com/resteasy/Resteasy/pull/2315

      The problem is that since we do async IO in `onNext()` for reactive streams, and that method is meant to be synchronous, so for the last call to `onNext()` the publisher will call `onComplete()` before we're done with the async IO and we close the output stream in `onComplete()`, so the last async IO operation would fail.

      This problem already had a fix for SSE streaming, but not for RAW streaming. I just copied the fix.

      This cannot happen before the last item because we only request the next item after the async IO is done. So it can only happen when there are no more items to be requested.

      Attachments

        Activity

          People

            separdau@redhat.com Stephane Epardaud
            separdau@redhat.com Stephane Epardaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: