Re: Need Help : Unable to write back a response error code from ReadListener#onError

2023-10-31 Thread Adwait Kumar Singh
Sorry for the wrong bug id. This is the one I filed, https://bz.apache.org/bugzilla/show_bug.cgi?id=68037 On Tue, Oct 31, 2023 at 3:24 PM Adwait Kumar Singh wrote: > AFAIK the response is not being committed. > > I created a bug for this with a reproducible test case, > https://bz.apache.org/bu

Re: Need Help : Unable to write back a response error code from ReadListener#onError

2023-10-31 Thread Adwait Kumar Singh
AFAIK the response is not being committed. I created a bug for this with a reproducible test case, https://bz.apache.org/bugzilla/show_bug.cgi?id=54123 On Tue, Oct 31, 2023 at 12:49 PM Mark Thomas wrote: > > > On 30/10/2023 22:25, Adwait Kumar Singh wrote: > > Hi, > > > > I am using the async

Re: Need Help : Unable to write back a response error code from ReadListener#onError

2023-10-31 Thread Mark Thomas
On 30/10/2023 22:25, Adwait Kumar Singh wrote: Hi, I am using the async Servlet API and NIO, by setting a ReadListener. In the onError of the ReadListener, I am catching a SocketTimeoutException and trying to send back an error code 408. Here is the simplified example of what I am trying to

Re: Need Help : Unable to write back a response error code from ReadListener#onError

2023-10-30 Thread Adwait Kumar Singh
FYI, I am doing the async processing on the Container thread itself, just that I yield the thread back if I can't read without blocking. Based on the code here , I see that the error is only dispatc

Need Help : Unable to write back a response error code from ReadListener#onError

2023-10-30 Thread Adwait Kumar Singh
Hi, I am using the async Servlet API and NIO, by setting a ReadListener. In the onError of the ReadListener, I am catching a SocketTimeoutException and trying to send back an error code 408. Here is the simplified example of what I am trying to do, @Override > public void onError(Throwable failu