]> git.ipfire.org Git - thirdparty/squid.git/commit
Avoid assertions on Range requests that trigger Squid-generated errors.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 9 Mar 2014 02:35:19 +0000 (19:35 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Mar 2014 02:35:19 +0000 (19:35 -0700)
commit67f1a3b56a616777fd30c48c4c2a7ac3f5f96139
tree8d3f77847a548b9c17e582548a32b940d4bebf47
parent5181ac037cd05aa439eb0da6f94b58db486db5b1
Avoid assertions on Range requests that trigger Squid-generated errors.

Added HttpRequest::ignoreRange() to encapsulate range ignoring logic.
Currently the new method only contains the code common among all callers. More
work is needed to check whether further caller homogenization is possible.

Documented that ClientSocketContext::getNextRangeOffset() may sometimes be
called before it is ready to do its job.
src/HttpRequest.cc
src/HttpRequest.h
src/client_side.cc
src/client_side_reply.cc
src/client_side_reply.h
src/client_side_request.cc
src/http.cc