From: fhanik Date: Thu, 31 May 2007 11:51:34 +0000 (+0000) Subject: return the amount of bytes written X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ce9dccf1bbc475249860c50c0214ed790b032dda;p=tomcat7.0 return the amount of bytes written git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543117 13f79535-47bb-0310-9956-ffa450edef68 --- 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; }