h5bp / server-configs-node

Express / Connect middleware for websites. Goes well with HTML5 Boilerplate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EventEmitter memory leak detected.

saurabhghewari opened this issue · comments

I am using jmeter to test the performance of my code.For that i am firing 50 requests at a time but the code takes only 11 requests and and gives the warning as follow.

I am using h5bp npm library to compress the data send over the network.

(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at ServerResponse.addListener (events.js:160:15)
at headersLayer (C:\Users\Pratik\Documents\brigge\source\node_modules\h5bp\lib\layers\headers.js:133:7)
at fn (C:\Users\Pratik\Documents\brigge\source\node_modules\h5bp\node_modules\async\lib\async.js:582:34)
at Object._onImmediate (C:\Users\Pratik\Documents\brigge\source\node_modules\h5bp\node_modules\async\lib\async.js:49
8:34)
at processImmediate as _immediateCallback

Hi,

This probably is a bug related to express.
We are using a quite outdated version, so I'll update it to see if it resolves your problem.