--------------------- PatchSet 11992 Date: 2008/03/17 23:24:25 Author: hno Branch: SQUID_2_7 Tag: (none) Log: Make range_offset_limit 0 disable local range processing as documented was prefetching the object and processing ranges locally if the first range started at 0 ... Members: src/HttpHdrRange.c:1.28->1.28.6.1 Index: squid/src/HttpHdrRange.c =================================================================== RCS file: /cvsroot/squid/squid/src/HttpHdrRange.c,v retrieving revision 1.28 retrieving revision 1.28.6.1 diff -u -r1.28 -r1.28.6.1 --- squid/src/HttpHdrRange.c 28 Apr 2006 10:17:18 -0000 1.28 +++ squid/src/HttpHdrRange.c 17 Mar 2008 23:24:25 -0000 1.28.6.1 @@ -1,6 +1,6 @@ /* - * $Id: HttpHdrRange.c,v 1.28 2006/04/28 10:17:18 hno Exp $ + * $Id: HttpHdrRange.c,v 1.28.6.1 2008/03/17 23:24:25 hno Exp $ * * DEBUG: section 64 HTTP Range Header * AUTHOR: Alex Rousskov @@ -482,8 +482,11 @@ if (NULL == range) /* not a range request */ return 0; - if (-1 == Config.rangeOffsetLimit) + if (!Config.rangeOffsetLimit) /* disabled */ + return 1; + if (-1 == Config.rangeOffsetLimit) + /* forced */ return 0; if (Config.rangeOffsetLimit >= httpHdrRangeFirstOffset(range)) /* below the limit */