hbons/SparkleShare-Dashboard — Issue #54: EventEmitter memory leak and EHOSTUNREACH
Author: alexschomb
Created: 2012-02-19 19:46:59+00:00
State: open

It's hard for me to reproduce, but from time to time (once a day) the SparkleShare Dashboard crashes, most of the time with a EHOSTUNREACH error. (see below) This time there even was another error before the EHOSTUNREACH in the log (same instance, therefore it didn't cause a crash - but EHOSTUNREACH did).
The dashboard is setup to make use of the built-in fanout server and serves Android and iOS devices (currently one for each). I'm using no proxy configuration with Apache2, NGINX or similar, just the built-in nodejs webservice running on port 3000 (default configuration). Operating System is the latest Debian wheezy/sid.

```
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace:
at EventEmitter. (events.js:126:17)
at /data/SparkleShare-Dashboard/fanout/fanout.js:68:23
at Array.forEach (native)
at Client.subscribe (/data/SparkleShare-Dashboard/fanout/fanout.js:62:17)
at Client.addChannel (/data/SparkleShare-Dashboard/fanout/fanout.js:29:8)
at Server. (/data/SparkleShare-Dashboard/fanout/fanout.js:124:18)
at Server.emit (events.js:64:17)
at IOWatcher.callback (net.js:950:12)

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EHOSTUNREACH, No route to host
at Socket._readImpl (net.js:163:14)
at Socket._onReadable (net.js:627:22)
at IOWatcher.onReadable [as callback] (net.js:177:10)
^C
[1]+ Exit 1 /usr/local/bin/sparkleshare_dashboard.sh
```