(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,
>
> 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
...
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
> 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
Hello,
Sorry for the previous mail ...
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.asyncContext.getResponse().
alagu...@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 listener.
@Override
public void onWritePossible() throws IOException {
if (this.isFirst)
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 servle
Hello,
I have a NIO connector with an asynchronous servlet with its write listener.
@Override
public void onWritePossible() throws IOException {
if (this.isFirst) {
this.os = this.asyncContext.getResponse().getOutputStream();
this.startIdx = 0;
this.endIdx = WRITE_BUFFER_SIZE;
}