Eatin' bytes on downloads
Brought to you by:
leist
Files or resumed segments that start with an ascii
digit confuses XNap, so it eats some bytes, thinking
that it is the file size insteat the data stream. As it
knows the file size from the request, it should know
how much bytes it receives are actually *not* part of
the data stream, by converting the well-known file size
to an ascii string, and comparing each byte it
receives. Say, if the size is 123456 bytes, it should
expect 6 bytes and start reading the data stream
immediately after them (and of course, it should
compare the strings to see if it's everything ok).
I have posted more details here:
http://www.animefantasia.com/modules.php?
op=modload&name=XForum&file=viewthread&tid=790
Logged In: YES
user_id=165597
Thanks for the report. I replaced the buggy code. Fixed in
2.4-pre2.