483427 - AsyncContext complete while pending async Reads/Writes
This commit is contained in:
parent
4bbd060ca8
commit
ddba6c20cd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue