]> git.ipfire.org Git - thirdparty/squid.git/commit
Simplified Downloader (positive) termination condition
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Jul 2021 20:30:19 +0000 (16:30 -0400)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 16 Jul 2021 17:33:09 +0000 (13:33 -0400)
commit4a6e098325fde4645fc4ffd7b3a88f42689a2ca2
treeef79d22f5bc17a3ae18f92e525d6a21eb6847632
parent9a471db1109069a7832f11dfda09bc13574f922a
Simplified Downloader (positive) termination condition

With JobWait API used by the callers, we no longer need to rely on some
unrelated async job call noticing the callback cancellation. We are now
guaranteed to receive a noteAbort() call.

I also removed a call to always-true parent doneAll() because no other
job, not even a parent's job can force Downloader to keep running -- if
we have notified the requestor, we are done! Squid code is not
consistent in application of that principle (yet).
src/Downloader.cc