Skip to content

Memory leak on REP socket server when the REQ client disappears #1313

Closed
@topher200

Description

@topher200

We're getting a memory leak on our server when we have a client make a REQ socket request but close before the server manages to send the REP socket response. The client is shut down after the server has received the request but before it has created its response. If the client does not close, the memory leak is not there.

I tracked the issue down to the message's type_t. The message is being created with type_t of type_lmsg. However, by the time it is being destroyed it is type_vsm. The type mismatch leaves the extra data found in a type_lmsg type un-destroyed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions