RE: Write listener question

2024-05-30 Thread joan.balaguero
(t); } private void postProcess(Throwable t) { this.ac.complete(); if (t != null) { t.printStackeTrace(); } } -Original Message- From: Chuck Caldarale Sent: Thursday, May 30, 2024 8:01 PM To: Tomcat Users List Subject: Re: Write listener question > On May 30, 2024, at 12:53, >

Re: Write listener question

2024-05-30 Thread Chuck Caldarale
> On May 30, 2024, at 12:53, > wrote: > > isFirst is initialized to 'true' when the class is instantiated, so that > piece of code is just executed the first time the execution enters the ' > onWritePossible' method. Later, within the same 'if', 'isFirst' is set to > false, (not shown in the

RE: Write listener question

2024-05-30 Thread joan.balaguero
... The client is receiving this: ... el>. It's like a chunk is received in wrong order. Thanks! Joan. -Original Message- From: Chuck Caldarale Sent: Thursday, May 30, 2024 7:27 PM To: Tomcat Users L

Re: Write listener question

2024-05-30 Thread Chuck Caldarale
> On May 30, 2024, at 08:47, > wrote: > > I have a NIO connector with an asynchronous servlet with its write listener > (working in both tomcat 8.5 and tomcat 10.1.20). > > @Override > public void onWritePossible() throws IOException { > > if (this.isFirst) { >this.os = this.asyncCont

Re: Write listener question

2024-05-30 Thread Christopher Schultz
Joan, Please don't hijack threads. Start a new message to the list without replying to an existing one. -chris On 5/30/24 06:03, joan.balagu...@ventusproxy.com wrote: Sorry, this issue happens with both Tomcat 8.5.x and 10.1.x. -Original Message- From: joan.balagu...@ventusproxy.com

RE: Write listener question

2024-05-30 Thread joan.balaguero
Sorry, this issue happens with both Tomcat 8.5.x and 10.1.x. -Original Message- From: joan.balagu...@ventusproxy.com Sent: Thursday, May 30, 2024 11:57 AM To: 'Tomcat Users List' Subject: Write listener question Hello, I have a NIO connector with an asynchronous servlet with its write