On hook state management.

Discussions

Ask a Question
Back to All

On hook state management.

Using the firewall example, i noticed that removing the hook, its hook-state remains still there, instead of being cleared along with the hook.
I did some testing by deleting and setting again hooks even with different namespaces.
This seems strange to me.
In this case, how can the hook-state memory be permanently deleted if the hook namespace and all stored keys are lost?
maybe the "reset" and "iteration" hook state functions of the key-values map are missing?