molnarg / node-http2

An HTTP/2 client and server implementation for node.js
MIT License
1.79k stars 187 forks source link

set connection max listeners to infinite #201

Closed Covertness closed 6 years ago

Covertness commented 8 years ago

Fix the warning when the request body is too large:

(node) warning: possible EventEmitter memory leak detected. 11 wakeup listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Connection.addListener (events.js:239:17)
    at Connection.Readable.on (_stream_readable.js:665:33)
    at Connection.once (events.js:265:8)
    at Connection._send (/root/js-psychokinesis/node_modules/http2/lib/protocol/connection.js:339:10)
    at processImmediate [as _immediateCallback] (timers.js:383:17)