If I am making use of Server Sent Events, and my server uses async
processing to save using lots of threads.., there is an issue with deciding
if a AsyncContext has timed out or complete.
1) when the doGet is invoked, an AsyncContext is created from
request.startAsync(). This asyncContext is shown as below if printed to the
2) An AsyncListener is added that monitors for the asyncContext closed.
3) If complete/timeout/error, the context that is passed is logged as:
As the first asyncContext that is returned from request.startAsync(), is not
the same as that which is passed to the listener methods, it makes it
impossible to tidy up, as I cant tell which completed AsyncContext referrers
to which was stored at the time of the initial request.
View this message in context:
Sent from the TomEE Users mailing list archive at Nabble.com.