HTTP Content-Length
David Hoyt
dhoyt at llnl.gov
Mon May 4 19:06:50 EDT 2009
When parsing content-length HTTP headers, you use Integer.parseInt(...). We
actually have content whose length is > Integer.MAX_VALUE and as a result we
get exceptions when trying to download it through netty. Changing this to
using longs would solve the problem. I believe java.io.File returns a long
for .length(). So matching that would be helpful.
Thanks, btw, for all the hard work and a great product!
--
View this message in context: http://n2.nabble.com/HTTP-Content-Length-tp2789983p2789983.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list