Possible bug in ChunkedFile and ChunkedNioFile?

XNeo hoeferh at gmail.com
Tue Apr 6 08:44:14 EDT 2010


Hi,

I think I might have found a bug in the ChunkedFile, ChunkedNioFile,
ChunkedStream and ChunkedNioStream classes of Netty 3.2.0.BETA1. The
recently added isEndOfInput() method just returns hasNextChunk() -- but it
probably should return !hasNextChunk().

The way it is currently implemented, only the first chunk ever gets written.
If there is more data (that is, if hasNextChunk() returns true) the sending
is stopped, because isEndOfInput() also immediately returns true.

Am I missing something?
Thanks!
-- 
View this message in context: http://n2.nabble.com/Possible-bug-in-ChunkedFile-and-ChunkedNioFile-tp4858782p4858782.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list