deadlock sending a large (~200MB) file from server to client

michi michi at cs.stanford.edu
Mon Sep 19 01:25:28 EDT 2011


Hello,

I'm trying to use netty to send large files (~200MB) from server to client
over HTTP. I followed Trustin's suggestion here and used
ChannelFutureListener to send files in chunks. 

http://www.jboss.org/netty/community#nabble-td2952981|a2953779

However, write() gets stuck once in a while, and I'm not sure what's causing
the deadlock. I have a simple program that reproduces the issue:

https://github.com/m1ch1/netty-playground/blob/master/PrimaryServerHandler.java#L116

Am I using ChannelFutureListener incorrectly?

Thanks!
--Michi

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/deadlock-sending-a-large-200MB-file-from-server-to-client-tp6807268p6807268.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list