diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java index 93655b7a729..585933a66fe 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java @@ -284,10 +284,6 @@ public class RequestTest extends TestCase assertTrue(response.indexOf("200")>0); assertTrue(response.indexOf("Connection: close")>0); assertTrue(response.indexOf("Hello World")>0); - - - - } @@ -394,10 +390,90 @@ public class RequestTest extends TestCase assertTrue((Cookie)cookies.get(0)!=(Cookie)cookies.get(2)); assertTrue((Cookie)cookies.get(1)!=(Cookie)cookies.get(3)); - } + public void testCookieLeak() + throws Exception + { + + final String[] cookie=new String[10]; + + _handler._checker = new RequestTester() + { + public boolean check(HttpServletRequest request,HttpServletResponse response) + { + for (int i=0;i