https://issues.apache.org/bugzilla/show_bug.cgi?id=54711

--- Comment #1 from Nick Williams <[email protected]> ---
Please note, I pasted the wrong improved method in here. Actual version:

        @Override
        public void write(byte[] b, int off, int len) throws IOException {
            if (buffer.remaining() == 0) {
                flush();
            }

            int remaining = buffer.remaining();
            int written = 0;

            while (remaining < len - written) {
                buffer.put(b, off + written, remaining);
                written += remaining;
                flush();
                remaining = buffer.remaining();
            }
            buffer.put(b, off + written, len - written);
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to