tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: svn commit: r486219 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Response.java
Date Tue, 12 Dec 2006 18:14:26 GMT
-1 on using tabs instead of spaces ;)



pero@apache.org 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: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message