]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Commented FwdState::cancelStep()
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 20 Jul 2021 18:02:08 +0000 (21:02 +0300)
committerEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 20 Jul 2021 18:02:08 +0000 (21:02 +0300)
I simply copied the existing TunnelStateData::cancelStep()
comment - both these methods do the same.

src/FwdState.cc

index 0b275a852c2519fb016971f8d58d134e9290db8d..994095c932d45c4a136b8664f52881e1dfd25d19 100644 (file)
@@ -318,6 +318,9 @@ FwdState::~FwdState()
     debugs(17, 3, "FwdState destructed, this=" << this);
 }
 
+/// Notify a pending subtask, if any, that we no longer need its help. We do not
+/// have to do this -- the subtask job will eventually end -- but ending it
+/// earlier reduces waste and may reduce DoS attack surface.
 void
 FwdState::cancelStep(const char *reason)
 {