-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"drain" event listener leak when using res.once("drain"); can't use res.removeListener("drain") #152
Comments
duplicate of #135 please correct me if this is not a duplicate ticket |
I guess it's the same underlying cause, but two new manifestations. |
Gotcha. I assume that the Node.js |
This module intercepts
res.on
and remaps it tostream.on
. Usingres.once("drain", listener)
multiple times creates a listener leak because this is essentially what happens:For that same reason, it looks like a listener bound with
res.on("drain", listener)
can never actually be removed withres.removeListener
.(Also mentioned in #135 (comment).)
The text was updated successfully, but these errors were encountered: