Author: pero Date: Tue Dec 12 10:23:44 2006 New Revision: 486266 URL: http://svn.apache.org/viewvc?view=rev&rev=486266 Log: no functional change -- remove tabs, Sorry ;(
Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Response.java Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Response.java URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Response.java?view=diff&rev=486266&r1=486265&r2=486266 ============================================================================== --- tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Response.java (original) +++ tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Response.java Tue Dec 12 10:23:44 2006 @@ -130,26 +130,27 @@ */ public void setConnector(Connector connector) { this.connector = connector; - if("AJP/1.3".equals(connector.getProtocol())) { + if ("AJP/1.3".equals(connector.getProtocol())) { // default size to size of one ajp-packet - Object packetSize = (Object)connector.getProperty("packetSize") ; - int valuePacketSize = 8192 ; - if(packetSize != null) { - if (packetSize instanceof Integer) { - valuePacketSize =((Integer)packetSize).intValue(); - } else { - if (packetSize instanceof String) { - if(!"".equals(packetSize)) - valuePacketSize = new Integer((String)packetSize).intValue(); - } - } - if(valuePacketSize < 8192 ) - valuePacketSize = 8192 ; - } - // Reduce HSIZE and Command = 6 Bytes - outputBuffer = new OutputBuffer(valuePacketSize - 6 ); + Object packetSize = (Object) connector.getProperty("packetSize"); + int valuePacketSize = 8192; + if (packetSize != null) { + if (packetSize instanceof Integer) { + valuePacketSize = ((Integer) packetSize).intValue(); + } else { + if (packetSize instanceof String) { + if (!"".equals(packetSize)) + valuePacketSize = new Integer((String) packetSize) + .intValue(); + } + } + if (valuePacketSize < 8192) + valuePacketSize = 8192; + } + // Reduce HSIZE and Command = 6 Bytes + outputBuffer = new OutputBuffer(valuePacketSize - 6); - } else { + } else { outputBuffer = new OutputBuffer(); } outputStream = new CoyoteOutputStream(outputBuffer); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]