rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
718 stars 288 forks source link

Listener leak on MultiplexSocket during reconnect #195

Open jcheng5 opened 8 years ago

jcheng5 commented 8 years ago

Reconnecting a bunch of times gives you this:

(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at addListener (events.js:160:15)
    at new MultiplexSocket (/home/jcheng/development/shiny-server/lib/proxy/multiplex.js:47:8)
    at onMultiplexConnect (/home/jcheng/development/shiny-server/lib/proxy/sockjs.js:54:20)
    at Server.<anonymous> (/home/jcheng/development/shiny-server/lib/proxy/sockjs.js:43:7)
    at Server.emit (events.js:95:17)
    at App.emit (/home/jcheng/development/shiny-server/node_modules/sockjs/lib/sockjs.js:193:29)
    at /home/jcheng/development/shiny-server/node_modules/sockjs/lib/transport.js:111:25
    at process._tickCallback (node.js:448:13)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at addListener (events.js:160:15)
    at new MultiplexSocket (/home/jcheng/development/shiny-server/lib/proxy/multiplex.js:55:8)
    at onMultiplexConnect (/home/jcheng/development/shiny-server/lib/proxy/sockjs.js:54:20)
    at Server.<anonymous> (/home/jcheng/development/shiny-server/lib/proxy/sockjs.js:43:7)
    at Server.emit (events.js:95:17)
    at App.emit (/home/jcheng/development/shiny-server/node_modules/sockjs/lib/sockjs.js:193:29)
    at /home/jcheng/development/shiny-server/node_modules/sockjs/lib/transport.js:111:25
    at process._tickCallback (node.js:448:13)
detule commented 8 years ago

Hi Joe

Did you ever figure this out? Perhaps not relevant post-refactor, but couple of months ago I pinged Jeff about something similar.

Cheers.