remy is right, lets not sacrifice performance to protect against bad servlet code
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 23 Oct 2006 18:24:59 +0000 (18:24 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 23 Oct 2006 18:24:59 +0000 (18:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467065 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/InternalNioOutputBuffer.java

index 09f87e7..37459c1 100644 (file)
@@ -604,7 +604,7 @@ public class InternalNioOutputBuffer
     }
 
     int total = 0;
-    private synchronized void addToBB(byte[] buf, int offset, int length) throws IOException {
+    private void addToBB(byte[] buf, int offset, int length) throws IOException {
         if (socket.getBufHandler().getWriteBuffer().capacity() <= (offset + length)) {
             flushBuffer();
         }