tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémy Maucherat <>
Subject Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener
Date Thu, 30 Jan 2014 17:27:47 GMT
2014-01-30 Yann Simon <>:

> It means we cannot write real asynchronous reactive applications with
> servlet 3.1... disappointing.
> onDataAvailable is already something asynchronous, so starting an
asynchronous operation from it to do the same thing you're supposed to do
is not going to make things more asynchronous.

Unless you really are careful to do things exactly like in your example,
async reads is going to produce thread safety problems.

About the specific example, I'd say it doesn't work because the NIO
connector doesn't do anything to add the channel to its "poller" when ready
flips unless it is already in that state when the container thread returns,
but the APR connector does (so it would likely work).


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message