]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix URN response handling (#472)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sun, 15 Sep 2019 15:32:30 +0000 (15:32 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 16 Sep 2019 11:31:47 +0000 (11:31 +0000)
commit682d51903117ec63cbaf4821b29133b8c1eeb871
tree19bfb99e067b85dc811aecb3bffd8c3b7d3632ce
parentbc57df7cc05294eed3fded5dfd15ee1dbe78548f
Fix URN response handling (#472)

urnHandleReply() may be called several times while copying the entry
from the store. Each time it must use the buffer length that is left
(from the previous call).

Also do not abandon a urn entry, still having clients attached.

Also allow urnHandleReply() to produce a reply if it receives a
zero-sized buffer. This may happen after the entry has been fully
stored.
src/urn.cc