postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.69k stars 357 forks source link

hitting max channel id limit #361

Open poseyj opened 9 years ago

poseyj commented 9 years ago

I am creating a single amqp connection, and creating queues from it. I have set the close channel on unsubscribe channel and am calling unsubscribe when done processing the message. However the channel id's keep increasing and eventually the calls start failing b/c I've reached the max limit on channel id's. Is there something else I should be doing to close the channels?

AliUz commented 9 years ago

you should create the channel connection once and reuse it for each subsequent request. reference: #247