Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replyQueue: false - messages do not get published #65

Closed
astanciu opened this issue Apr 10, 2015 · 2 comments
Closed

replyQueue: false - messages do not get published #65

astanciu opened this issue Apr 10, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@astanciu
Copy link

Hi,

Not sure if I'm doing something wrong or if there's an issue elsewhere but I noticed that if I add the connection option replyQueue: false the publish() method does not actually publish anything. As soon as the option is removed, messages start going through.

var rabbit = require('wascally');
var settings = {
    "connection": {
        "user": "admin",
        "pass": "password",
        "server": "localhost",
        "port": 5672,
        "vhost": "idio",
        "replyQueue": false  //No messages with this on. Comment out and messages get sent to queue
    },
    "exchanges": [
        { "name": "crud", "type": "direct", "durable": true, "persistent": true, "autoDelete": false }
    ],
    "queues": [
        { "name": "ops", "durable": true , "autoDelete": false} 
    ],
    "bindings": [
        { "exchange": "crud", "target": "ops", "keys": [] }
    ]
}


rabbit.configure(settings)


function sendMessage(obj) {
    rabbit.publish('crud', {
        type: 'idio.message',
        routingKey: '',
        body: obj
    });
    console.log('Sent: ' + obj.id)
}


function send(total) {
    console.time('mq')
    for (var i = 1; i <= total; i++) {
        var obj = {
            id: i,
            name: 'Hello ' + i,
            total: total
        }
        sendMessage(obj)
    }
}

send(10)
@juliendangers
Copy link

yes, we observe the same thing. There is a silent fail when you set replyQueue to false.

Actually you have to set a replyQueue (even if you don't use it), or you can't publish anything :/

@arobson
Copy link
Collaborator

arobson commented Apr 27, 2015

@astanciu @juliendangers - this should be fixed in 0.2.5 now. Please let me know if you continue to notice issues related to this feature.

@arobson arobson closed this as completed Apr 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants