413901 isAsyncStarted remains true while original request is dispatched

This commit is contained in:
Greg Wilkins 2013-08-13 10:38:54 +10:00
parent 1e39b7d476
commit c27e58b785
2 changed files with 2 additions and 1 deletions

View File

@ -574,6 +574,8 @@ public class HttpChannelState
{ {
synchronized (this) synchronized (this)
{ {
if (_state==State.DISPATCHED)
return _async!=null;
return _async==Async.STARTED || _async==Async.EXPIRING; return _async==Async.STARTED || _async==Async.EXPIRING;
} }
} }

View File

@ -352,7 +352,6 @@ public class GzipFilter extends UserAgentFilter
{ {
if (request.isAsyncStarted()) if (request.isAsyncStarted())
{ {
request.getAsyncContext().addListener(new FinishOnCompleteListener(wrappedResponse)); request.getAsyncContext().addListener(new FinishOnCompleteListener(wrappedResponse));
} }
else if (exceptional && !response.isCommitted()) else if (exceptional && !response.isCommitted())