One more thing to add -- While I still recommend my fix (it abides strictly by the usage of FilterInputStream and guarantees no evil thread thrashing), I do recommend a more thorough look at the whole RangeInputStream class. It seems to me that there are a few places that could use some more code lovin', especially the available() implementation. I think there's a chance the exception could be avoided in all but the rarest of cases.
I wish I had time to help more with this, but my work on this bug has already gone far beyond my time schedule! :( -Tal ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2385082

