You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/09/22 21:34:16 UTC
svn commit: r1174338 -
/tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
Author: markt
Date: Thu Sep 22 19:34:16 2011
New Revision: 1174338
URL: http://svn.apache.org/viewvc?rev=1174338&view=rev
Log:
Remove unused code
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=1174338&r1=1174337&r2=1174338&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java Thu Sep 22 19:34:16 2011
@@ -176,7 +176,6 @@ public class InternalNioOutputBuffer ext
if ( selector != null ) pool.put(selector);
}
if ( block ) bytebuffer.clear(); //only clear
- this.total = 0;
return written;
}
@@ -212,7 +211,6 @@ public class InternalNioOutputBuffer ext
}
- private int total = 0;
private synchronized void addToBB(byte[] buf, int offset, int length) throws IOException {
while (length > 0) {
int thisTime = length;
@@ -227,7 +225,6 @@ public class InternalNioOutputBuffer ext
socket.getBufHandler().getWriteBuffer().put(buf, offset, thisTime);
length = length - thisTime;
offset = offset + thisTime;
- total += thisTime;
}
NioEndpoint.KeyAttachment ka = (NioEndpoint.KeyAttachment)socket.getAttachment(false);
if ( ka!= null ) ka.access();//prevent timeouts for just doing client writes
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org