-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
ws removes underlying socket's "internal" event listeners #392
Comments
misterdjules
pushed a commit
to misterdjules/ws
that referenced
this issue
Oct 31, 2014
When adding a "custom" event listener to the underlyin socket, use the functions named "addCustomEventListener" or "addCustomEventListeners". This will keep track of which event listeners have been added. When it's time to remove custom events listeners, use removeAllCustomEventListeners. Fixes websockets#392
misterdjules
pushed a commit
to misterdjules/ws
that referenced
this issue
Oct 31, 2014
When adding a "custom" event listener to the underlyin socket, use the functions named "addCustomEventListener" or "addCustomEventListeners". This will keep track of which event listeners have been added. When it's time to remove custom events listeners, use removeAllCustomEventListeners. Fixes websockets#392
This was referenced Oct 31, 2014
@3rd-Eden Any comment on the fix ? |
@3rd-Eden So far so good, short run is perfect. Waiting the result of 12 hours of run. |
Published as |
Great! |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This leads to the issue described in this comment: nodejs/node-v0.x-archive#8615 (comment).
To paraphrase the comment mentioned above, when the
end
event is emitted on the underlying socket,this._socket.removeAllListeners
removes all custom events listeners setup by ws, but it also removes "internal" event listeners that need to be called to properly close it. This results in the other end of the connection waiting for it to be properly closed.The text was updated successfully, but these errors were encountered: