https://bz.apache.org/bugzilla/show_bug.cgi?id=59220

--- Comment #6 from Violeta Georgieva <violet...@apache.org> ---
(In reply to Scott Nicklous from comment #5)
> I know what you mean and agree with you. 
> 
> From Tomcat's point of view, the Pluto portal is an application. However,
> Pluto itself hosts portlet applications that may come from various sources.
> The question is how can Pluto release its resources allocated to a portlet
> async request if the portlet application misbehaves or has an exception and
> does not call complete()? 
> 
> My idea was that Pluto could register an AsyncListener of its own (in
> addition to any AsyncListeners possibly registered by the portlet
> applications) to release its resources during the onComplete call. But that
> only works if the underlying container (Tomcat, in this case) assures that
> onComplete is called under all circumstances.

The idea here is that you should call AsyncContext.complete() in onTimeout
event that your listener will receive instead of waiting for container to call
AsyncContext.complete() and then onComplete().

In your example if I add AsyncContext.complete() in
basic.servlet.TestedListener.onTimeout(AsyncEvent) then the third use case is
working.

Do you think this will work for your scenario?

Regards,
Violeta

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to