Author: markt
Date: Wed Sep 4 09:10:35 2013
New Revision: 1519951
URL: http://svn.apache.org/r1519951
Log:
Correct comment
Fix some whitespace formatting
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=1519951&r1=1519950&r2=1519951&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java Wed
Sep 4 09:10:35 2013
@@ -190,7 +190,7 @@ public class InternalNioOutputBuffer ext
// Keep writing until all the data is written or a non-blocking write
// leaves data in the buffer
- while (!dataLeft && length>0) {
+ while (!dataLeft && length > 0) {
int thisTime =
transfer(buf,offset,length,socket.getBufHandler().getWriteBuffer());
length = length - thisTime;
offset = offset + thisTime;
@@ -204,11 +204,10 @@ public class InternalNioOutputBuffer ext
}
NioEndpoint.KeyAttachment ka =
(NioEndpoint.KeyAttachment)socket.getAttachment(false);
- if ( ka!= null ) ka.access();//prevent timeouts for just doing client
writes
+ if (ka != null) ka.access();//prevent timeouts for just doing client
writes
- if (!isBlocking() && length>0) {
- //we must buffer as long as it fits
- //ByteBufferHolder tail = bufferedWrite.
+ if (!isBlocking() && length > 0) {
+ // Remaining data must be buffered
addToBuffers(buf, offset, length);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]