Hi guys,

just saw there are few issues with async servlets on 7.0.59.

Issue pops up with such a code (not real world one but same kind of
sync issue can happen in real life):


{
  AsyncContext ac = request.startAsync();
  ac.complete();
// checking here the returned value of request.isAsyncStarted() shows
the bug explicitely if you want to write a unit test
}

since org.apache.coyote.Processor#asyncPostProcess is not called in
between the 2 calls when arriving in
org.apache.coyote.AsyncStateMachine#asyncComplete state is STARTING
and not STARTED so state doesnt move to COMPLETING but MUST_COMPLETE
and method returns false instead of true so complete doesn't do what
is expected.

Was working in previous versions (7.0.57 IIRC)

Is the bug identified? Will it be fixed?


Thanks!


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to