Author: markt
Date: Wed Dec 17 22:41:50 2014
New Revision: 1646356

URL: http://svn.apache.org/r1646356
Log:
Header size is a constant (fix the test as well)

Modified:
    tomcat/trunk/test/org/apache/coyote/ajp/SimpleAjpClient.java

Modified: tomcat/trunk/test/org/apache/coyote/ajp/SimpleAjpClient.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/ajp/SimpleAjpClient.java?rev=1646356&r1=1646355&r2=1646356&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/ajp/SimpleAjpClient.java (original)
+++ tomcat/trunk/test/org/apache/coyote/ajp/SimpleAjpClient.java Wed Dec 17 
22:41:50 2014
@@ -378,9 +378,8 @@ public class SimpleAjpClient {
         TesterAjpMessage message = new TesterAjpMessage(AJP_PACKET_SIZE);
 
         byte[] buf = message.getBuffer();
-        int headerLength = message.getHeaderLength();
 
-        read(is, buf, 0, headerLength);
+        read(is, buf, 0, Constants.H_SIZE);
 
         int messageLength = message.processHeader(false);
         if (messageLength < 0) {
@@ -394,7 +393,7 @@ public class SimpleAjpClient {
                         "] for buffer length [" +
                         Integer.valueOf(buf.length) + "]");
             }
-            read(is, buf, headerLength, messageLength);
+            read(is, buf, Constants.H_SIZE, messageLength);
             return message;
         }
     }



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

Reply via email to