You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2022/11/21 22:32:19 UTC

[Bug 66358] Need a way to close socket of the async request after it was committed

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

--- Comment #1 from Alex <a7...@gmail.com> ---
What I am executing using internal APIs to achieve the desired effect is
something like this:

            AsyncContextImpl asyncContextImpl = (AsyncContextImpl)
asyncContext;
            Request req = (Request) requestField.get(asyncContextImpl);
            req.getCoyoteRequest().action(ActionCode.CLOSE_NOW, null);


This is obviously a fairly bad idea, but I could not find any other options.
I am also not sure if the above code would not leak some resources in Tomcat.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org