483427 - AsyncContext complete while pending async Reads/Writes

This commit is contained in:
Greg Wilkins 2015-12-02 16:46:20 +11:00
parent 4bbd060ca8
commit ddba6c20cd
1 changed files with 16 additions and 9 deletions

View File

@ -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);