From: fhanik Date: Mon, 23 Oct 2006 18:24:59 +0000 (+0000) Subject: remy is right, lets not sacrifice performance to protect against bad servlet code X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=140089290e4bac894888c88db94e3841f8ed43ba;p=tomcat7.0 remy is right, lets not sacrifice performance to protect against bad servlet code git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467065 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java index 09f87e792..37459c1e9 100644 --- a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java +++ b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java @@ -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(); }