On Sat, 31 Jul 2021 17:33:50 GMT, Alan Bateman <al...@openjdk.org> wrote:
> I need to look at it closely but I suspect this introduces a potential > overflow. Also if output stream is backed by a SocketChannel configured > non-blocking then FC::transferTo may return 0 so I assume there is a > potential infinite loop there too. I suspect the eventually patch will need > have to make use of the blockingLock to prevent the underlying channels from > being changed to non-blocking during the transfer. I need to confess that my NIO knowledge is not deep enough to follow you closely, so I trust on your advice how to go on from here. ------------- PR: https://git.openjdk.java.net/jdk/pull/4263