Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-10-08 Thread Javateck
Thank you Mark Andrew > On Oct 8, 2021, at 1:44 AM, Mark Thomas wrote: > > On 07/10/2021 22:23, Javateck wrote: >> Hi Mark, >> Just wondering whether we have a radar to track this, will it be in release >> notes for next release? > > The fix is in 9.0.54 and is listed in the changelog. > >

Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-10-08 Thread Mark Thomas
On 07/10/2021 22:23, Javateck wrote: Hi Mark, Just wondering whether we have a radar to track this, will it be in release notes for next release? The fix is in 9.0.54 and is listed in the changelog. Mark Thanks, Andrew On Sep 27, 2021, at 8:54 AM, Mark Thomas wrote: On 27/09/2021

Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-10-07 Thread Javateck
Hi Mark, Just wondering whether we have a radar to track this, will it be in release notes for next release? Thanks, Andrew > On Sep 27, 2021, at 8:54 AM, Mark Thomas wrote: > > On 27/09/2021 15:55, Mark Thomas wrote: >>> On 27/09/2021 09:08, Goldengate liu wrote: >>> Hi Mark, >>> >>>

Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-09-28 Thread Javateck
Mark, Thank you very much for the quick fix Andrew > On Sep 27, 2021, at 8:54 AM, Mark Thomas wrote: > > On 27/09/2021 15:55, Mark Thomas wrote: >>> On 27/09/2021 09:08, Goldengate liu wrote: >>> Hi Mark, >>> >>>I’m uploading some test files >> Thanks for the test case. I'm looking at

Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-09-27 Thread Mark Thomas
On 27/09/2021 15:55, Mark Thomas wrote: On 27/09/2021 09:08, Goldengate liu wrote: Hi Mark,    I’m uploading some test files Thanks for the test case. I'm looking at this now. Bug found and fixed. One thing to note is that with chunked encoding it is possible for you to see isReady()

Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-09-27 Thread Mark Thomas
On 27/09/2021 09:08, Goldengate liu wrote: Hi Mark,   I’m uploading some test files Thanks for the test case. I'm looking at this now. Mark   Below are the steps: 1. compile GetPayloadServlet.java and put it to webapps/test/WEB-INF/classes/test/ 2. put web.xml to webapps/test/WEB-INF/

Re: Tomcat 9.0 async read becomes blocking with chunked transfer-encoding

2021-09-27 Thread Goldengate liu
Hi Mark,  I’m uploading some test files GetPayloadServlet.java Description: Binary data HttpPostTest.java Description: Binary data web.xml Description: XML document   Below are the steps: 1. compile GetPayloadServlet.java and put it to webapps/test/WEB-INF/classes/test/ 2. put web.xml to 

Re: Tomcat 9.0 async read becomes blocking

2021-09-22 Thread Mark Thomas
On 22/09/2021 08:22, Goldengate liu wrote: Hi Chris, Servlet 3.1 spec defines that ServletInputStream can be used to read as non-blocking way as long as there is data ready locally by calling isReady method and check the ready condition before calling read, and read should throw

Re: Tomcat 9.0 async read becomes blocking

2021-09-22 Thread Goldengate liu
>> Hi Chris, >> Servlet 3.1 spec defines that ServletInputStream can be used to read as >> non-blocking way as long as there is data ready locally by calling isReady >> method and check the ready condition before calling read, and read should >> throw IllegalStateException if called by caller

Re: Tomcat 9.0 async read becomes blocking

2021-09-22 Thread Mark Thomas
On 21/09/2021 23:01, Javateck wrote: Hi Chris, Servlet 3.1 spec defines that ServletInputStream can be used to read as non-blocking way as long as there is data ready locally by calling isReady method and check the ready condition before calling read, and read should throw

Re: Tomcat 9.0 async read becomes blocking

2021-09-21 Thread Javateck
Hi Chris, Servlet 3.1 spec defines that ServletInputStream can be used to read as non-blocking way as long as there is data ready locally by calling isReady method and check the ready condition before calling read, and read should throw IllegalStateException if called by caller when data is

Re: Tomcat 9.0 async read becomes blocking

2021-09-21 Thread Christopher Schultz
Andrew, On 9/21/21 13:54, Javateck wrote: Hi, With NIO connector with Servlet 3.1 support, I’m registering with a ReadListener, while it got the first read signal from tomcat container (I tried 9.0.19 and 9.0.53), the read call is blocked after isReady returns true if

Re: Tomcat 9.0 async read becomes blocking

2021-09-21 Thread Javateck
It’s happening in chunk encoding > On Sep 21, 2021, at 10:54 AM, Javateck wrote: > > Hi, > > With NIO connector with Servlet 3.1 support, I’m registering with a > ReadListener, while it got the first read signal from tomcat container (I > tried 9.0.19 and 9.0.53), the read call is blocked

Tomcat 9.0 async read becomes blocking

2021-09-21 Thread Javateck
Hi, With NIO connector with Servlet 3.1 support, I’m registering with a ReadListener, while it got the first read signal from tomcat container (I tried 9.0.19 and 9.0.53), the read call is blocked after isReady returns true if (ServletInputStream.isReady()) {