Skip to content

Memory leak if trying to send data to closed Socket #468

@konstantinzolotarev

Description

@konstantinzolotarev

Here is check for only closing state. https://github.com/socketio/engine.io/blob/master/lib/socket.js#L382

But if Socket has closed readyState and somebody try to send something to this socket. Data remains in this.writeBuffer and eats memory.

screen shot 2017-01-04 at 8 02 16 pm

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