{"action":"created","issue":{"url":"https://api.github.com/repos/squaremo/amqp.node/issues/365","repository_url":"https://api.github.com/repos/squaremo/amqp.node","labels_url":"https://api.github.com/repos/squaremo/amqp.node/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/squaremo/amqp.node/issues/365/comments","events_url":"https://api.github.com/repos/squaremo/amqp.node/issues/365/events","html_url":"https://github.com/squaremo/amqp.node/issues/365","id":244276548,"number":365,"title":"Acknowledge publish","user":{"login":"furstenheim","id":8070719,"avatar_url":"https://avatars1.githubusercontent.com/u/8070719?v=4","gravatar_id":"","url":"https://api.github.com/users/furstenheim","html_url":"https://github.com/furstenheim","followers_url":"https://api.github.com/users/furstenheim/followers","following_url":"https://api.github.com/users/furstenheim/following{/other_user}","gists_url":"https://api.github.com/users/furstenheim/gists{/gist_id}","starred_url":"https://api.github.com/users/furstenheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furstenheim/subscriptions","organizations_url":"https://api.github.com/users/furstenheim/orgs","repos_url":"https://api.github.com/users/furstenheim/repos","events_url":"https://api.github.com/users/furstenheim/events{/privacy}","received_events_url":"https://api.github.com/users/furstenheim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-20T08:00:51Z","updated_at":"2017-08-02T08:32:36Z","closed_at":null,"body":"When rabbit hits a memory limit it refuses published messages. According to this link:\r\nhttps://groups.google.com/forum/#!topic/rabbitmq-users/OMZ7581MnEY\r\n\r\nIt is possible to publish messages to rabbit with a confirm style so that I know if the messages were correctly published. Is it possible to perform this with amqp? As channel.publish is synchronous I'm not sure."},"comment":{"url":"https://api.github.com/repos/squaremo/amqp.node/issues/comments/319605933","html_url":"https://github.com/squaremo/amqp.node/issues/365#issuecomment-319605933","issue_url":"https://api.github.com/repos/squaremo/amqp.node/issues/365","id":319605933,"user":{"login":"furstenheim","id":8070719,"avatar_url":"https://avatars1.githubusercontent.com/u/8070719?v=4","gravatar_id":"","url":"https://api.github.com/users/furstenheim","html_url":"https://github.com/furstenheim","followers_url":"https://api.github.com/users/furstenheim/followers","following_url":"https://api.github.com/users/furstenheim/following{/other_user}","gists_url":"https://api.github.com/users/furstenheim/gists{/gist_id}","starred_url":"https://api.github.com/users/furstenheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furstenheim/subscriptions","organizations_url":"https://api.github.com/users/furstenheim/orgs","repos_url":"https://api.github.com/users/furstenheim/repos","events_url":"https://api.github.com/users/furstenheim/events{/privacy}","received_events_url":"https://api.github.com/users/furstenheim/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T08:32:36Z","updated_at":"2017-08-02T08:32:36Z","body":"@squaremo Sorry for the delay, not sure that I can make it fully work. As I said, I'm taking a look at what happens when I reach the memory watermark.\r\n\r\nI've used a confirmChannel as you suggested and then when I publish I provide a callback\r\n    channel.publish(exchange, routingKey, content, options, function (err, result) {\r\n      console.log(err ? 'Message nacked' : 'Message acked')})\r\nIt is better because it does not automatically return true. However, the callback is never called, it just hangs there indefinitely (>50s). Do you know if it is something on rabbitmq part? Maybe some config parameter that I have to change?\r\n\r\nI suppose that I could always impose some timeout on the client part and close the channel if I'm getting no answer.\r\n"}}
{"actor":{"display_login":"furstenheim"}}