diff options
-rw-r--r-- | jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletIOTest.java | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletIOTest.java b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletIOTest.java index 1095b9f087..460f3799d9 100644 --- a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletIOTest.java +++ b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletIOTest.java @@ -658,16 +658,23 @@ public class AsyncServletIOTest assertTrue(chunked); // Get body slowly - String last; - while (true) + String last=null; + try { - last=line; - //Thread.sleep(1000); - line = in.readLine(); - LOG.debug("body: "+line); - if (line==null) - break; - list.add(line); + while (true) + { + last=line; + //Thread.sleep(1000); + line = in.readLine(); + LOG.debug("body: "+line); + if (line==null) + break; + list.add(line); + } + } + catch(IOException e) + { + } LOG.debug("last: "+last); |