postwait/node-amqp — pull request #142 by ZeissS (2012-10-21 09:03:17+00:00)
Title: Fixes memory leak for confirmed messages

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

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