Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 6787 invoked from network); 22 Dec 2003 20:47:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Dec 2003 20:47:08 -0000 Received: (qmail 70958 invoked by uid 500); 22 Dec 2003 20:46:54 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 70913 invoked by uid 500); 22 Dec 2003 20:46:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 70900 invoked from network); 22 Dec 2003 20:46:53 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 22 Dec 2003 20:46:53 -0000 Received: (qmail 402 invoked by uid 50); 22 Dec 2003 20:46:58 -0000 Date: 22 Dec 2003 20:46:58 -0000 Message-ID: <20031222204658.401.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@cocoon.apache.org Cc: Subject: DO NOT REPLY [Bug 25712] New: - ResourceReader does not support resumes/byteranges correctly X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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: dev@cocoon.apache.org ReportedBy: apachebugzilla@litrik.com 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)