No need for this check anymore due to reading within the loop condition. https://docs.oracle.com/javase/7/docs/api/java/nio/channels/ReadableByteChannel.html guarantees that read() call will be blocked till at least one byte is read. But I guess there's no harm in using ">= 0" in the condition just in case.
[ Full content available at: https://github.com/apache/beam/pull/6440 ] This message was relayed via gitbox.apache.org for [email protected]
