410893 async support defaults to false for spec created servlets and filters

fixed up continuations for differen isAsyncStarted behaviour
This commit is contained in:
Greg Wilkins 2013-06-17 16:03:41 +10:00
parent d6d5c04273
commit 6ed36160f0
1 changed files with 11 additions and 1 deletions

View File

@ -166,7 +166,17 @@ public class Servlet3Continuation implements Continuation
@Override
public boolean isSuspended()
{
return _request.isAsyncStarted();
if (_request.isAsyncStarted())
return true;
try
{
return _request.getAsyncContext()!=null;
}
catch(IllegalStateException e)
{
// ignored
}
return false;
}
/* ------------------------------------------------------------ */