Skip to content

Managed Listener leaks sockets #88

@alexjfisher

Description

@alexjfisher

Hi

I've not had much luck getting the native listener to be stable, so have been trying the managed listener instead. Unfortunately, this leaks sockets. After a while, I have so many sockets in CLOSE_WAIT state that I run out of file descriptors.

I've been trying to debug this, but haven't got that far. Could the problem be here?

readShutdown is set, but there's no code anywhere else that ever checks this.
(If I trigger a leak by eg. shutting down nginx, this callback does get called and bytesRead == 0)

Maybe I should just call OnDisconnected (); instead??

Thanks

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