fluent / fluent-logger-forward-node

A fluent forward protocol implementation for Node.js
https://fluent.github.io/fluent-logger-forward-node/
Apache License 2.0
11 stars 8 forks source link

Fix EventEmitter leak #21

Closed jamiees2 closed 3 years ago

jamiees2 commented 3 years ago

We were leaking event handlers by always attaching to the FluentSocket eventEmitter. When there is no error event but lots of timeouts, we end up attaching lots of error listeners and never removing them.

Fixes #20 I think