On 3/17/21 7:40 PM, Joshua Rogers wrote:

> I am currently looking at how Squid handles the so-called entering and
> exiting of contexts: ctx_enter, ctx_exit.

That legacy API should be removed soon. You can see a rough preview of
the removal proposal, including motivation, at the following unofficial
commit: https://github.com/measurement-factory/squid/commit/944cb4c


> My question is: what happens if this context is not cleaned up/ctx_exit
> is not called? Is there some other handler which removes stale contexts?

No, there is not. Stale context will stay cached. I am not sure when/if
it will be dropped/forgotten. That known problem is one of the reasons
that legacy API should be removed. Modern Squids use CodeContext API
instead. CodeContext is exception-aware and solves a few other problems.


HTH,

Alex.
_______________________________________________
squid-dev mailing list
squid-dev@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-dev

Reply via email to