diff --git a/c/include/proton/message.h b/c/include/proton/message.h index 6a31eafaa2..c7da729856 100644 --- a/c/include/proton/message.h +++ b/c/include/proton/message.h @@ -203,6 +203,9 @@ PN_EXTERN pn_millis_t pn_message_get_ttl (pn_message_t *msg); * * See ::pn_message_get_ttl() for a detailed description of message ttl. * + * The default ttl value for a new message is 0. If this value is 0, Proton + * will send no ttl message header. + * * @param[in] msg a message object * @param[in] ttl the new value for the message ttl * @return zero on success or an error code on failure diff --git a/python/proton/_message.py b/python/proton/_message.py index cf0f7b96d3..5057dfe362 100644 --- a/python/proton/_message.py +++ b/python/proton/_message.py @@ -225,6 +225,9 @@ def ttl(self) -> float: """The time to live of the message measured in seconds. Expired messages may be dropped. + The default ttl value for a new message is 0. If this value is 0, + Proton will send no ttl message header. + :raise: :exc:`MessageException` if there is any Proton error when using the setter. """ return millis2secs(pn_message_get_ttl(self._msg)) diff --git a/ruby/lib/core/message.rb b/ruby/lib/core/message.rb index 53244b9732..dcb49bafdb 100644 --- a/ruby/lib/core/message.rb +++ b/ruby/lib/core/message.rb @@ -201,6 +201,9 @@ def ttl=(time) # Returns the time-to-live, in milliseconds. # + # The default ttl value for a new message is 0. If this value is 0, Proton + # will send no ttl message header. + # def ttl Cproton.pn_message_get_ttl(@impl) end