https://issues.apache.org/bugzilla/show_bug.cgi?id=54711
--- Comment #1 from Nick Williams <nicho...@nicholaswilliams.net> --- 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org