Skip to content

Can't set durable to False #83

@Gsantomaggio

Description

@Gsantomaggio

Describe the bug

It is not possible to set message.durable to False
The limitation is due to the C library, when setting the values False, it is ignored

@durable.setter
def durable(self, value: bool) -> None:
self._check(pn_message_set_durable(self._msg, bool(value)))

The server is True by default.

Reproduction steps

Set message durable to False and check it
✅ - When the message is set to 'True`

Image

🚫 When set to False

Image

Even the message.durable is set to False the Clib ignores the value

Expected behavior

The clib should be set False the message

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions