rabbitmq-server
rabbitmq-server copied to clipboard
Set redelivery_count header
Extracted from https://github.com/rabbitmq/rabbitmq-stomp/issues/21, see this thread.
We need to count redeliveries in the core before this can be resolved.
@priviterag please copy the relevant parts into this description and modify rabbitmq/rabbitmq-stomp#21's one.
By the way, there are requirement to dead-letter message if it was redelivered several times without being acknowledged. Here https://www.rabbitmq.com/amqp-0-9-1-reference.html#class.basic I think it should be optional, but still current implementation miss it.