{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/amqp-coffee/issues/40","labels_url":"https://api.github.com/repos/dropbox/amqp-coffee/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/amqp-coffee/issues/40/comments","events_url":"https://api.github.com/repos/dropbox/amqp-coffee/issues/40/events","html_url":"https://github.com/dropbox/amqp-coffee/issues/40","id":97166264,"number":40,"title":"AMQP channels question","user":{"login":"janajri","id":2857405,"avatar_url":"https://avatars.githubusercontent.com/u/2857405?v=3","gravatar_id":"","url":"https://api.github.com/users/janajri","html_url":"https://github.com/janajri","followers_url":"https://api.github.com/users/janajri/followers","following_url":"https://api.github.com/users/janajri/following{/other_user}","gists_url":"https://api.github.com/users/janajri/gists{/gist_id}","starred_url":"https://api.github.com/users/janajri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janajri/subscriptions","organizations_url":"https://api.github.com/users/janajri/orgs","repos_url":"https://api.github.com/users/janajri/repos","events_url":"https://api.github.com/users/janajri/events{/privacy}","received_events_url":"https://api.github.com/users/janajri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-24T23:11:22Z","updated_at":"2015-07-25T00:17:11Z","closed_at":null,"body":"We've recently gone live to production using your library to bridge RabbitMQ queues with clients who go on/off line quite frequently (think mobile). Whenever a client comes online we send a consume to the rabbitmq server and then when the client goes offline, we fire a consume.close(). During our beta stage things seemed to have gone just fine, however, recently, we've been seeing many open channels on our rabbitmq server that have no consumers. I was under the impression that a single channel would suffice for consuming for multiple queues where each queue ties to one client and one client only. Is my mental model incorrect?\r\n\r\nAny thoughts?\r\nCode looks somehting like this:\r\n\r\n```javascript\r\n  var Conn = Rabbit.get();\r\n   client.consumer = Conn.consume(/* params*/);\r\n   ...\r\n   client.on('disconnected', function(){\r\n     client.consumer.close();\r\n   });\r\n```"},"comment":{"url":"https://api.github.com/repos/dropbox/amqp-coffee/issues/comments/124774456","html_url":"https://github.com/dropbox/amqp-coffee/issues/40#issuecomment-124774456","issue_url":"https://api.github.com/repos/dropbox/amqp-coffee/issues/40","id":124774456,"user":{"login":"barshow","id":607478,"avatar_url":"https://avatars.githubusercontent.com/u/607478?v=3","gravatar_id":"","url":"https://api.github.com/users/barshow","html_url":"https://github.com/barshow","followers_url":"https://api.github.com/users/barshow/followers","following_url":"https://api.github.com/users/barshow/following{/other_user}","gists_url":"https://api.github.com/users/barshow/gists{/gist_id}","starred_url":"https://api.github.com/users/barshow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barshow/subscriptions","organizations_url":"https://api.github.com/users/barshow/orgs","repos_url":"https://api.github.com/users/barshow/repos","events_url":"https://api.github.com/users/barshow/events{/privacy}","received_events_url":"https://api.github.com/users/barshow/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T00:17:11Z","updated_at":"2015-07-25T00:17:11Z","body":"I suspect your doing the actual q.declare in self.bind?  You can grab the messageCount from the declare response.\r\n\r\nHow many channels are getting left open?\r\n\r\nIt would be helpful for the channel issue for you to run with the debug flags.  we could probably trace down the error in that case"}}