DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25712>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25712 ResourceReader does not support resumes/byteranges correctly Summary: ResourceReader does not support resumes/byteranges correctly Product: Cocoon 2 Version: Current CVS 2.1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: sitemap components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In 2.0.4 the scratchpad contained a ByteRangeResourceReader which added byterange support to the standard ResourceReader (to allow download managers to resume broken downloads). It worked just fine. In 2.1 this code was merged into the standard ResourceReader, but unfortunately it is buggy. There are 2 major problems: 1) Cocoon only informs the client that it supports byteranges when the client requests a byterange. But clients typically wait for the server to tell them that byteranges are supported before requesting any. This is a typical catch22 situation. 2) Requests for byteranges should never be cached. Otherwise, if the first download of a file is interrupted, the partial file will be stored in the cache and served for all other requests. I have patched the ResourceReader and this patched version is working OK on our production server. (Added some docs and fixed a small typo as well)
