pardahlman / RawRabbit

A modern .NET framework for communication over RabbitMq
MIT License
747 stars 144 forks source link

Message-TTL cannot be set to 0 via Attributes #345

Closed SvenRH closed 6 years ago

SvenRH commented 6 years ago

When trying to set the MessageTTL viaattributes to 0 the value is ignored.

Setting a value of 0 should be possible as it's a valid value. See https://www.rabbitmq.com/ttl.html

The value of the TTL argument or policy must be a non-negative integer (0 <= n), ... Setting the TTL to 0 causes messages to be expired upon reaching a queue unless they can be delivered to a consumer immediately.