https://bz.apache.org/bugzilla/show_bug.cgi?id=66358
Bug ID: 66358
Summary: Need a way to close socket of the async request after
it was committed
Product: Tomcat 9
Version: 9.0.65
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
It's possible to terminate the regular servlet request after the http code 200,
response headers and some data was sent to the client by throwing an exception.
In that case the socket is closed asap and the client receives some form of
failed response with truncated chunk encoding or too short for the
content-length.
It does not appear that there is a way to perform a similar "abort" for async
requests. AsyncContext.complete() only allows normal completion. There is no
API similar to AsyncContext.fail(cause).
If the the async response is in progress and is committed and then some error
happens on the server there is no way to abort the response and close the
socket.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]