tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Freeman \(saurik\)" <sau...@saurik.com>
Subject Patch for Previously Mentioned 8k Limit (Affects ajp13 Only)
Date Mon, 03 Jul 2000 19:30:17 GMT
Wanted to figure some more out about this problem, so I tried it with Tomcat
3.1, and it worked fine.  But I was using ajp12 to test Tomcat 3.1.  So I
went back to 3.2 beta and tried it with ajp12, and it works fine.  There is
something specifically wrong with the ajp13 connector that is causing this
8k limit.  Problem seems to be a miscalculation of the maximum size of
sendable data.  There is a -2 where there should be a –4.  Changing this
solves the problem.  This patch should probably get into 3.2 before it is
released:

diff -u -r1.4 Ajp13ConnectorResponse.java
---
src/share/org/apache/tomcat/service/connector/Ajp13ConnectorResponse.java
2000/05/30 06:16:48     1.4
+++
src/share/org/apache/tomcat/service/connector/Ajp13ConnectorResponse.java
2000/07/03 19:27:03
@@ -77,7 +77,7 @@
 {
        public static final int  MAX_SEND_SIZE =
TcpConnector.MAX_PACKET_SIZE -
                                                 TcpConnector.H_SIZE -
-                                                2;
+                                                4;

     public static final byte JK_AJP13_SEND_BODY_CHUNK   = 3;
     public static final byte JK_AJP13_SEND_HEADERS      = 4;

Sincerely,
Jay Freeman (saurik)
saurik@saurik.com



Mime
View raw message