Possible bug in ChunkedFile and ChunkedNioFile?

"Trustin Lee (이희승)" trustin at gmail.com
Mon Apr 12 07:47:13 EDT 2010


Hi XNeo,

You're right.  Thanks for filing a JIRA issue.  I've just fixed it.

Thanks again,
Trustin

XNeo wrote:
> 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!

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100412/033764bf/attachment.bin 


More information about the netty-users mailing list