Possible way to avoid Tomcat from recycling the request/response on error?

2023-11-24 Thread Adwait Kumar Singh
Hi, I am trying to build a Streaming solution on top of Tomcat and using Async servlets. What I am doing is I start an asynchronous process using `startAsync()` and then attach a ReadListener which streams the data forward `onDataAvailable`, the consumer consumes this on another thread. Now the pr

Using Async Servlets correctly to avoid smuggling.

2023-11-24 Thread Adwait Kumar Singh
Hey Tomcat users, I am using Async Servlets and have a question on how to safeguard my application from Request Smuggling. In my current setup I do the following, 1. `startAsync` on the ServletRequest. 2. Create a ReadListener and attach it to the ServletInputStream. 3. Once I have read the enti