-
Notifications
You must be signed in to change notification settings - Fork 57
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. #108
Comments
Can you please upload an example to reproduce? Ideally without any external dependencie, but if you can only reproduce with Koa it is fine as well. |
Sure.. i will update this issue here in the comments during this weekend with a repo containing all the stuff |
The minimal it is the better. |
Creating a new minimal codebase i wasn't able to get the error. But going back to the project and looking around i've found a favicon.ico declared with the wrong path. |
If you use the |
Actually I think this is a well known (at least to me :-) ) problem with expressjs/serve-static#87 (comment) Its actually in the There is no memory leak, what actually happens is that each time it creates a stream to send data from server to client, I am using the old molnarg/node-http2 module, as I haven't quite figured out how to try this one yet |
Closing then :). You are welcome to try this out, this will be part of node itself. |
@mcollina yes I know this will be part of node, and I am waiting for an opportunity to switch over. Of particular interest to me is how this module handles the situation of the client going away (or more precisely hitting the refresh button) in the middle of the transmission by the server. My app makes a last minute desperate attempt to send an "release all locks" api request to the server and then I think the browser resets the connection. The old http2 module throws an error and crashes the server in this instance. The problem at the moment is that I can't quite work out from the context of this repository how to include this http2 module. Does using make on this repo build an entire version of nodejs with the http2 module in it, or can I just build the http2 module and its dependances |
@mcollina This is likely to be linked to an issue with node-apn. So you have a stack trace to inspect. Any ideas on what might be occurring here? |
@jpike88 this is definitely not your issue. Yours is related to the module npm “http2”, while this is about the http2 module within core. |
I am using http2 in a project that is using SSL from Let's encrypt.
If i use http2 i get this error, instead if i switch over https module all work good.
(node:60502) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit
The text was updated successfully, but these errors were encountered: