[undertow-dev] Async sending of NIO objects thru a ServletOutputStream?

Jason T. Greene jgreene at redhat.com
Tue Sep 16 22:33:57 EDT 2014



Sent from my iPhone

> On Sep 16, 2014, at 8:19 PM, Jim Crossley <jim at crossleys.org> wrote:
> 
> Is this an async or a blocking transfer? The problem with
> > ReadableByteChannel is that it can be a blocking channel, and as a
> > result reading from it in the IO thread will result in crappy
> > performance.
> 
> Because of the way they're using it (with Clojure's core.async library)
> I expect the transfer to be async, but I'll verify that with them.

I just looked at the Jetty impl, and the code assumes blocking behavior with that method. Anything using it will be blocking reads with non blocking writes.


More information about the undertow-dev mailing list