You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:74215) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 disconnect listeners added. Use emitter.setMaxListeners() to increase limit
I've opened an issue here (libp2p/js-libp2p-websocket-star#58) on trying to get this fixed, and unfortunately they do not seem to know how, and neither do I.
Stack overflow (https://stackoverflow.com/questions/9768444/possible-eventemitter-memory-leak-detected) suggests using process.setMaxListeners(0), but I think that only works on websockets generally and not socket.io. I am also a little confused as to why this many event emitters (more than 10) are being created, when it appears that I am only spinning up at most 2.
If anyone has any ideas please let me know. I understand that this library is slightly orthogonal to socket.io, but it appears to be having issues that no one currently understands how to fix.
Thank you very much.
Running the rendezvous server with node --inspect gives this debug output:
I'm using a library that is a websocket relay for IPFS nodes (https://github.com/libp2p/js-libp2p-websocket-star). Currently they are using socket io to transmit events, but the library often gets the following error:
(node:74215) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 disconnect listeners added. Use emitter.setMaxListeners() to increase limit
I've opened an issue here (libp2p/js-libp2p-websocket-star#58) on trying to get this fixed, and unfortunately they do not seem to know how, and neither do I.
Stack overflow (https://stackoverflow.com/questions/9768444/possible-eventemitter-memory-leak-detected) suggests using process.setMaxListeners(0), but I think that only works on websockets generally and not socket.io. I am also a little confused as to why this many event emitters (more than 10) are being created, when it appears that I am only spinning up at most 2.
If anyone has any ideas please let me know. I understand that this library is slightly orthogonal to socket.io, but it appears to be having issues that no one currently understands how to fix.
Thank you very much.
Running the rendezvous server with
node --inspect
gives this debug output:The text was updated successfully, but these errors were encountered: