You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Javateck <ja...@gmail.com> on 2021/09/21 20:21:53 UTC
Re: Tomcat 9.0 async read becomes blocking
It’s happening in chunk encoding
> On Sep 21, 2021, at 10:54 AM, Javateck <ja...@gmail.com> 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 (ServletInputStream.isReady()) {
> ServletInputStream.read(buffer); // this becomes blocking
> }
>
> I tried with jetty, it’s working fine
>
> When I did the test, I was holding the sending packet from client side
>
> Not sure whether anyone has tried this
>
> Thanks,
> Andrew
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org