visionmedia/express — pull request #1244 by RubenVerborgh (2012-07-24 10:00:33+00:00)
Title: EventEmitter memory leak with successful sendfile

If sendfile is successful, the socket error listener doesn't get removed.
This leads to an EventEmitter memory leak (source: [StackOverflow](http://stackoverflow.com/questions/11605634/nodejs-express-set-server-possible-eventemitter-memory-leak-detected/11628001#11628001)):

(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace:
at Socket. (events.js:139:15)
at ServerResponse.sendfile (/data/www/margintop/server/node_modules/express/lib/response.js:185:14)
at /data/www/margintop/server/webserver/webserver.js:17:9
at callbacks (/data/www/margintop/server/node_modules/express/lib/router/index.js:165:11)
at param (/data/www/margintop/server/node_modules/express/lib/router/index.js:139:11)
at pass (/data/www/margintop/server/node_modules/express/lib/router/index.js:146:5)
at Router._dispatch (/data/www/margintop/server/node_modules/express/lib/router/index.js:173:4)
at Object.router [as handle] (/data/www/margintop/server/node_modules/express/lib/router/index.js:33:10)
at next (/data/www/margintop/server/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at multipart (/data/www/margintop/server/node_modules/express/node_modules/connect/lib/middleware/multipart.js:52:61)