Skip to content

Commit

Permalink
Fix EnMasseProject#3092: Turn off EventEmitter#maxListeners check for…
Browse files Browse the repository at this point in the history
… router management connection (EnMasseProject#3093)
  • Loading branch information
k-wall authored and Ulf Lilleengen committed Aug 20, 2019
1 parent e0bbae7 commit 3de1d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/lib/qdr.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ var Router = function (connection, router, agent) {
self.health_check();
}, interval);
}

this.connection.setMaxListeners(0);
this.connection.on('receiver_open', this.ready.bind(this));
this.connection.on('disconnected', this.disconnected.bind(this));
this.connection.on('sender_error', this.on_sender_error.bind(this));
Expand Down

0 comments on commit 3de1d5a

Please sign in to comment.