Skip to content

Conversation

@yvgopal
Copy link
Member

@yvgopal yvgopal commented May 21, 2020

TTL field in the message header is of type unsigned integer, so it cannot support TTL values
larger than 50 days when converted to milliseconds. So reading TTL as the difference between AbsoluteExpiryTime and CreationTime properties on the AMQP message.

…time. ttl field

in the message header is of type unsigned integer, so it cannot support TTL values
larger than 50 days when converted to milliseconds.
@yvgopal yvgopal requested a review from nemakam as a code owner May 21, 2020 04:40
@nemakam nemakam merged commit e2f8099 into Azure:master May 26, 2020
if (sbMessage.TimeToLive != TimeSpan.MaxValue)
{
amqpMessage.Header.Ttl = (uint)sbMessage.TimeToLive.TotalMilliseconds;
amqpMessage.Header.Ttl = sbMessage.TimeToLive.TotalMilliseconds < UInt32.MaxValue ? (uint)sbMessage.TimeToLive.TotalMilliseconds : UInt32.MaxValue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should considering adding this validation into the property for Track 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants