[Bug 4766] httpd fails to honor byte range requests if the range begins with 0

bugzilla at busybox.net bugzilla at busybox.net
Sat Feb 18 05:51:59 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4766

--- Comment #2 from Rob Walker <rwalker at rwalker.com> 2012-02-18 05:51:59 UTC ---
I don't know how sensitive BusyBox is to a word vs. a byte vs. a bit for data. 
Negative values of range_start could also be used as a positive boolean,
instead of the smallint range_req I've proposed.

To summarize:
if a range is requested and the Range: header is reasonable, set range_start to
requested value | ~MAX_INT (sets high bit)

range_start == 0 => no byte range requested or served
range_start != 0 => serve a byte range starting from (range_start ^ ~MAX_INT)

I don't know if BusyBox httpd has been tested or is expected to work with > 2GB
files, though.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list