postwait / node-amqp

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

handle reconnect correctly #368

Closed dchankhour closed 9 years ago

dchankhour commented 9 years ago

It seems that amqp handles reconnect and it re create the queues that were deleted. The issue i'm running into is that i don't specify a queue name when i do conn.queue(''), therefor, how could i capture the new queue name that is now generated by amqp?

Also, it seems that on reconnect basicQosOk is being called back, is there a reason for that and is there a way i can stop that?

dchankhour commented 9 years ago

I was able to fix the issue by actually providing a queue name. However, i'm still running into an issue where the basicQosOk is getting called back on reconnect.

dchankhour commented 9 years ago

Was able to fix the issue by not allowing the ready call back to fire again on reconnect.