On Mon, 19 Dec 2022 14:02:41 GMT, Chris Hegarty <che...@openjdk.org> wrote:
> The implementation of `BodySubscribers.ofFile` does not correctly handle the > case of a short gathering write. The write should be retried until all the > bytes have been written to the underlying file. > > This is generally not an issue that would occur very frequently, since the > `IOV_MAX` is commonly 1024 on Mac/Linux, and 16 on Windows. However, it is > clearly a bug, and should be fixed. This pull request has now been integrated. Changeset: a7d6de71 Author: Chris Hegarty <che...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/a7d6de71bb83c8715654f61dd166aad6e8dab847 Stats: 42 lines in 3 files changed: 39 ins; 0 del; 3 mod 8299015: Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes Co-authored-by: Daniel Jeliński <djelin...@openjdk.org> Reviewed-by: dfuchs, djelinski, jpai ------------- PR: https://git.openjdk.org/jdk/pull/11722