sendfile support in Netty?

Jay Kreps boredandroid at gmail.com
Mon Jul 20 11:31:10 EDT 2009


Hi All,

NIO makes it possible to directly transfer data between os pagecache and a
socket using the FileChannel.transferTo (and transferFrom) calls. This is a
very big performance boost, as it makes use of the sendfile system call and
thus avoids copying the data in and out of user space. Is there any way to
make use of this optimization in Netty?

What I am looking for is some way to get ahold of the underlying
SocketChannel so I can pass it to the transferTo call.

Thanks!

-Jay
-- 
View this message in context: http://n2.nabble.com/sendfile-support-in-Netty--tp3289522p3289522.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list