[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-dev
Subject: Re: [squid-dev] Ctx cleanup
From: Alex Rousskov <rousskov () measurement-factory ! com>
Date: 2021-03-18 2:13:07
Message-ID: b1f3dcb0-2dc2-9f2a-adb8-bc22fa900118 () measurement-factory ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic