Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1092

ReadListener.onAllDataRead is not always called

    XMLWordPrintable

Details

    Description

      in onDataAvailable I have to check:

      if stream.isReady()
      ... read
      else if stream.isFinished()
      onAllDataRead() // call onAllDataRead manually because it's missed in most cases

      For reference this is often running asynchronously, off the IO thread in most cases. The use case is a ReadListener implementation that writes data to an AsynchronousFileChannel.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            carterkozak Carter Kozak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: