Re: Async servlet and request recycle synchronization

2025-03-05 Thread François Rajotte
lete processing. The non-container thread may already be executing tomcat/container code, so aborting it at the application level is pretty much impossible to do reliably. Thanks again for your valuable insight, Regards, François On Tue, Mar 4, 2025 at 2:43 PM Christopher Schultz wrote: > >

Async servlet and request recycle synchronization

2025-03-04 Thread François Rajotte
Hi, I'm looking for advice on how to properly synchronize asynchronous servlets that use the Java servlet 3.0 async APIs. Especially, I'm trying to avoid having the servlet experience IllegalStateExceptions when accessing HttpServletRequest and HttpServletResponse objects that tomcat has recycled

Async servlet non-blocking IO and request recycling

2020-01-14 Thread François Rajotte
Hi, I have a question regarding async servlets and request recycling. In particular, I'm interested in request recycling by tomcat when an IO error occurs. In my use case, I'm using non-blocking reads with a ReadListener but blocking writes (no WriteListener). The main question can be summarized