From ce9dccf1bbc475249860c50c0214ed790b032dda Mon Sep 17 00:00:00 2001 From: fhanik Date: Thu, 31 May 2007 11:51:34 +0000 Subject: [PATCH] return the amount of bytes written git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543117 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/http11/InternalNioOutputBuffer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java index a7cbf6db5..9891ab122 100644 --- a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java +++ b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java @@ -419,7 +419,7 @@ public class InternalNioOutputBuffer } - private synchronized void writeToSocket(ByteBuffer bytebuffer, boolean flip) throws IOException { + private synchronized int writeToSocket(ByteBuffer bytebuffer, boolean flip) throws IOException { //int limit = bytebuffer.position(); if ( flip ) bytebuffer.flip(); int written = 0; @@ -440,6 +440,7 @@ public class InternalNioOutputBuffer } socket.getBufHandler().getWriteBuffer().clear(); this.total = 0; + return written; } -- 2.11.0