[
https://issues.apache.org/jira/browse/AMQCPP-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476939#comment-13476939
]
Oscar Pernas commented on AMQCPP-428:
-------------------------------------
Sorry for my later response and for the poor details that I give you. Messages
expires at the correct time, only if these messages are persistent, if not,
messages are never discarded.
> setTimeToLive not working
> -------------------------
>
> Key: AMQCPP-428
> URL: https://issues.apache.org/jira/browse/AMQCPP-428
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: CMS Impl, Transports
> Affects Versions: 3.4.4
> Environment: Debian linux wheezy
> Reporter: Oscar Pernas
> Assignee: Timothy Bish
> Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are
> never discarded by the broker. This can produce an out of memory in some
> situations.
> Example code:
> //sending message
> producer->send( textMessage,
> getPersistent(),
> activeMessageToSend.getPriority(),
> 30000);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira