Hi all,

It was my understanding that if you replied to a received message with a
`released` outcome, that the broker would attempt re-delivery to either the
link that received it or some other attached link. Is that correct?  I'm
not seeing this behavior with this simplified use case (using node-amqp10):

const amqp = require('amqp10');
let client = new amqp.Client();
client.connect('amqp://<some qpidd ip>')
  .then(() => Promise.all([
    client.createSender('test.queue'), client.createReceiver('test.queue')
]))
  .spread((sender, receiver) => {
    let receiveCount = 0;
    receiver.on('message', msg => {
      receiveCount++;
      if (receiveCount === 10) process.exit(0);
      console.log('received[', receiveCount, '], releasing');
      receiver.release(msg);
    });

    return sender.send({ test: 'message' });
  });

Regards,
Matt

Reply via email to