private static boolean bug55772RequestStateLeaked = false;
@Test
public void testBug55772() throws Exception {
Tomcat tomcat = getTomcatInstance();
tomcat.getConnector().setProperty("processorCache", "1");
tomcat.getConnector().setProperty("maxThreads", "1");
// Must have a real docBase - just use temp
Context ctxt = tomcat.addContext("",
System.getProperty("java.io.tmpdir"));
Tomcat.addServlet(ctxt, "async", new Bug55772Servlet());
ctxt.addServletMapping("/*", "async");
tomcat.start();
String request1 = "GET /async HTTP/1.1\r\n" +
"Host: localhost:" + getPort() + "\r\n" +
"Connection: keep-alive\r\n" +
"Cache-Control: max-age=0\r\n" +