-1 on using tabs instead of spaces ;)
[EMAIL PROTECTED] wrote:
Author: pero
Date: Tue Dec 12 08:35:15 2006
New Revision: 486219
URL: http://svn.apache.org/viewvc?view=rev&rev=486219
Log:
Add support to send and receive more the 8K BODY packets.
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=486219&r1=486218&r2=486219
==============================================================================
---
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 08:35:15 2006
@@ -132,8 +132,24 @@
this.connector = connector;
if("AJP/1.3".equals(connector.getProtocol())) {
// default size to size of one ajp-packet
- outputBuffer = new OutputBuffer(8184);
- } else {
+ 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 {
outputBuffer = new OutputBuffer();
}
outputStream = new CoyoteOutputStream(outputBuffer);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]