_contextId: size keeps continuing to grow, even after destroying the namespace
lioulbehailu opened this issue · comments
Lioul Behailu Desta commented
_contextId: size keeps continuing to grow, event after destroying the namespace. Doesn't create a Performance or a Memory leak problem when using in a production???
as you can see, i am destroying the namespace if it is not active
`app.use((req, res, next) => {
if (getNamespace('ADMIN') && getNamespace('ADMIN').active === null) {
destroyNamespace('ADMIN')
}
if (getNamespace('user') &&getNamespace('user').active === null) {
destroyNamespace('user');
}
next()});`
But the _contexts Map is growing in size.
May be i have misunderstand this in the wrong way, or may be not, but i think this gonna create when the server gets a request from multiple users