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

ReadListener.onAllDataRead is not always called

XMLWordPrintable

      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.

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

                Created:
                Updated:
                Resolved: