Fixes memory leak for confirmed messages #142

Merged
merged 1 commit into from Nov 30, 2012

Conversation

Projects
None yet
2 participants
@zeisss
Contributor

zeisss commented Oct 21, 2012

I played around with confirmation of messages published to an exchange. Since every message subscribes to error on the exchange, the maxListener limit is hit almost immediately.

This fix removes the error-callback for acknowledged messages from the exchange. One does still need to call setMaxListeners() on the exchange to match the number of expected unconfirmed messages.

@postwait postwait merged commit 9fde5b0 into postwait:master Nov 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment