-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Type error on error closing connection #1591
Comments
Are you able to create a reproducible test case? This can only happen if the |
It was easy reproduced on production load.
|
It was happening at the high load. nodejs use near of 90% cpu usage, socket with tls and part of connections was broken by network issues. |
i think that found problem: missed remove error handler, that produced race
|
No, if we do that and an |
Yep you are right. |
Yes I will revert 297f56d. |
@grimkirill if you can reproduce this, can you try with Node.js 10+? I would like to see if the issue is limited to Node.js 8. Thank you. |
@grimkirill any update? |
@lpinca I'm using Node.js 12, also having this issue as well. |
@chuahcheeshian same stack trace? Can you post it? Thank you. |
On my staging servers with little to no load, this error never happened at all. And when it happened, the server crashed and got restarted by Docker intentionally. I had then downgraded For more information, the version of Node.js I'm using is |
Ok I've reverted 297f56d. Will cut a new release soon. |
issue.
Description
Type error:
node_modules/ws/lib/websocket.js:900
websocket.readyState = WebSocket.CLOSING;
^
TypeError: Cannot set property 'readyState' of undefined
Reproducible in:
Steps to reproduce:
Connect
Disconnect by broken connection
Expected result:
Actual result:
Attachments:
The text was updated successfully, but these errors were encountered: