https://bz.apache.org/bugzilla/show_bug.cgi?id=57674

--- Comment #8 from Christopher Schultz <ch...@christopherschultz.net> ---
This does it on a fresh Tomcat 7.0.x trunk:

1. Modify the AJP <Connector> thusly:

    <Connector port="8009"
               redirectPort="8443"
               protocol="org.apache.coyote.ajp.AjpNioProtocol"
               URIEncoding="UTF-8"
               packetSize="65536"
               />

  (redirectPort and URIEncoding probably have nothing to do with it)

2. Set up your mod_jk worker thusly:

  worker.template.type=ajp13
  worker.template.host=localhost
  worker.template.connection_pool_timeout=60
  worker.template.socket_timeout=300
  worker.template.max_packet_size=65536

  worker.list=test-worker
  worker.test-worker.reference=worker.template
  worker.test-worker.port=8009

  (the 'template' worker is probably not necessary)

3. Run this simple JSP:

<%@page buffer="20kb" contentType="text/plain" %><%
  int iterations = 12500;
  int bytes = 0;
  for(int i=0; i<iterations; ++i) {
    out.println(String.format("%1$06x", bytes));
    bytes += 8;
  }
%>

Note the large (ish) buffer size and the long (ish) content.

Search the output for the text "AB" which is never actually intended to be in
the output; you'll see scarring of the response text at regular intervals.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to