Skip to content

Conversation

@ssinyagin
Copy link

net.Socket emits "end" only on successful closing, but it emits "close" in error conditions as well.

net.Socket emits "end" only on successful closing, but it emits "close" in error conditions as well.
@englercj
Copy link
Owner

englercj commented Jan 7, 2020

Thanks for tracking this down. Looks like this breaks one of the tests, can you look into why that is please?

@ssinyagin
Copy link
Author

seems like you're expecting connection::close while the socket is still alive. With my patch, the close event comes when the socket is done.

@englercj
Copy link
Owner

Makes sense, I'm happy to merge this once the tests are passing.

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

Successfully merging this pull request may close these issues.

2 participants