Andrey Pechkurov
1 min readFeb 23, 2019

--

A late follow-up.

Ignore resource leak issue warning in the previous message. Function namespace.bindEmitter() has nothing to do with cleaning up the context. The context clean up depends on destroy listener from Async Hooks API.

Still, for web frameworks, like Express, it’s recommended to use it to make sure that your middleware execution plays nice with CLS.

--

--

Andrey Pechkurov
Andrey Pechkurov

Written by Andrey Pechkurov

Core database engineer at QuestDB. Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.

No responses yet