RFR: 8299015: Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes

Chris Hegarty chegar at openjdk.org
Tue Dec 20 09:58:48 UTC 2022


On Tue, 20 Dec 2022 09:40:07 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Should we do something special here if no bytes are written, to avoid a busy loop?

I wonder how / if this could occur in practice? From what I see elsewhere the simple, "don't check no bytes written", loop is common.  ( It shouldn't be so hard/dangerous to use these gathering write APIs :-( )

-------------

PR: https://git.openjdk.org/jdk/pull/11722


More information about the net-dev mailing list