On Nov 16, 10:10 am, Shivakumar GN wrote:
> This may need better visibility since the relevance may not be obvious when
> using the sessions package.
Indeed, sessions docs also need to mention this. Any package that uses
gorilla/context must handle cleanup. It is not very obvious because if
you are not using the default mux handler you need to do it yourself.
Sorry for the confusion and wasted time.
This leakage is explained in the Purge() docs: "This is only used for
sanity check: in case context cleaning was not properly set some
request data can be kept forever, consuming an increasing amount of
memory."
http://www.gorillatoolkit.org/pkg/context#Purge
I actually never experienced it, that was just theoretical. Hehe.
If someone can file an issue, this won't be forgotten. :)
-- rodrigo