Keywords:
Tail requests when there is any range offset limit should not result in full object retrieval.
/*
- * $Id: HttpHdrRange.cc,v 1.32 2003/03/06 06:21:36 robertc Exp $
+ * $Id: HttpHdrRange.cc,v 1.33 2003/05/24 12:43:30 robertc Exp $
*
* DEBUG: section 64 HTTP Range Header
* AUTHOR: Alex Rousskov
/*
* Return true if the first range offset is larger than the configured
* limit.
+ * Note that exceeding the limit (returning true) results in only
+ * grabbing the needed range elements from the origin.
*/
bool
HttpHdrRange::offsetLimitExceeded() const
/* disabled */
return false;
+ if (firstOffset() == -1)
+ /* tail request */
+ return false;
+
if ((ssize_t)Config.rangeOffsetLimit >= firstOffset())
/* below the limit */
return false;