Skip to content

[Bug] z_session_drop might not immediately close the session #1120

@DenisBiryukov91

Description

@DenisBiryukov91

Describe the bug

z_session_drop might not immediately close the session.
The issue comes from the fact that session is a strong rc, and internally we occasionally upgrade weak session pointers to strong temporary to perform various operations, if this happens concurrently with z_session_drop, the session will not be closed upon return due to lingering strong session pointers.

To reproduce

call concurrently z_session_drop with any other operation temporary upgrading session (like z_publisher_put for example).

System info

Any multi-threaded

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