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

"Cannot call write after a stream was destroyed" error when closing a TCP client #2

Open
sirockin opened this issue Dec 31, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@sirockin
Copy link
Owner

sirockin commented Dec 31, 2018

When running TCP tests, the console shows the following error each time the client is destroyed:

Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at doWrite (_stream_writable.js:411:19)
    at clearBuffer (_stream_writable.js:522:5)
    at Socket.Writable.uncork (_stream_writable.js:319:7)
    at uncork (C:\flow\third-party-repos\rx-mqtt\node_modules\mqtt-packet\writeToStream.js:75:10)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)

Since this only appears once the client is destroyed, it shouldn't affect production although I would like to confirm it doesn't cause problems when reopening the client.

@sirockin sirockin added the bug Something isn't working label Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant