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 (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
InputStream is always blocking. Are you trying to use async? That's not the way to use async... -chris --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
