Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managed Listener leaks sockets #88

Open
alexjfisher opened this issue Aug 16, 2019 · 0 comments
Open

Managed Listener leaks sockets #88

alexjfisher opened this issue Aug 16, 2019 · 0 comments

Comments

@alexjfisher
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant