Skip to content

closeSocketFor does not destroy the web socket and causes memory leak #171

Open
@sethphillips

Description

@sethphillips

we tracked down a memory leak in our application that led us to sockets hanging around. turns out that the delete get(this, 'sockets')[cleanedUrl]; removes the reference but does not destroy the proxyObject. Getting that socket proxyObject and calling destroy() on it does remove it from memory though.
Happy to submit a PR if you need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions