tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r618420 - /tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
Date Mon, 04 Feb 2008 20:23:41 GMT
Author: fhanik
Date: Mon Feb  4 12:23:40 2008
New Revision: 618420

URL: http://svn.apache.org/viewvc?rev=618420&view=rev
Log:
check if there is more room, in case limit(x) has been called


Modified:
    tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java?rev=618420&r1=618419&r2=618420&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java Mon Feb  4 12:23:40
2008
@@ -794,7 +794,7 @@
             byte[] b = chunk.getBuffer();
             while (len > 0) {
                 int thisTime = len;
-                if (socket.getBufHandler().getWriteBuffer().position() == socket.getBufHandler().getWriteBuffer().capacity())
{
+                if (socket.getBufHandler().getWriteBuffer().position() == socket.getBufHandler().getWriteBuffer().capacity()
||socket.getBufHandler().getWriteBuffer().remaining()==0) {
                     flushBuffer();
                 }
                 if (thisTime > socket.getBufHandler().getWriteBuffer().remaining()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message