Author: fhanik Date: Fri Apr 13 08:33:44 2007 New Revision: 528526 URL: http://svn.apache.org/viewvc?view=rev&rev=528526 Log: if the flush is not guaranteed, then try again
Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java?view=diff&rev=528526&r1=528525&r2=528526 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java Fri Apr 13 08:33:44 2007 @@ -604,7 +604,7 @@ int total = 0; private synchronized void addToBB(byte[] buf, int offset, int length) throws IOException { - if (socket.getBufHandler().getWriteBuffer().remaining() < length) { + while (socket.getBufHandler().getWriteBuffer().remaining() < length) { flushBuffer(); } socket.getBufHandler().getWriteBuffer().put(buf, offset, length); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]