added the ability to discard old messages for non-durable topics if a maximum number of pending messages is reached