postwait / node-amqp

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

connection.end() doesn't end the connection on RabbitMQ server #437

Open jakkor opened 7 years ago

jakkor commented 7 years ago

The problem here is that it removes the socket but RabbitMQ server has still this connection as opened.

I needed to run connection.destroy() and then connection.end() to make it work, but maybe it would be good to add add everything to .end() and run .end() only.