RangeFilter and redirects
Subject: RangeFilter and redirects
Newsgroups: gmane.comp.java.restlet
Date: 2009-07-01 18:08:42 GMT
I ran across a problem that was causing the Daemon threads in our WadlComponent-based server to enter a busy
loop. Essentially, if a Range header was in the HTTP GET request but the server wanted to return a
redirection (e.g. via response.redirectSeeOther()), the entity would be wrapped by a
RangeRepresentation. Tunnel in to that, and RangeInputStream#read would loop here:
// Reach the start index.
while (!(position >= startIndex)) {
position += skip(startIndex - position);
}
Aside from the likelihood that there's also a bug in the handling/wrapping of a response entity that's too
small for the range, my first question here had to do with the status code of the response itself. Should
responses that are not "successful" (2xx) be subject to wrapping in a RangeRepresentation?
Thanks,
David
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2367149

RSS Feed