]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 18 Oct 2019 06:38:27 +0000 (19:38 +1300)
commit7aa0184a720fd216191474e079f4fe87de7c4f5a
treeb7e9ca5582ab9c2c95a7266f8ffe5d16c3516305
parentfbbdf75efd7a5cc244b4886a9d42ea458c5a3a73
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.

CID 1453857: Error handling issues (UNCAUGHT_EXCEPT)

Due to various Store deficiencies, storeUnregister() might call swapout
code which Broadcast()s and throws Ipc::OneToOneUniQueue::ItemTooLarge.
src/urn.cc