You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.
I'm writing a websocket server using multiple threads, so at anytime two threads could be sending a message to the same socket/websocketsession, but can't figure out whether I should use a lock around Send method OR are these methods thread safe?
Also, these methods don't have any return value, so what happens if the socket is closed by remote side while sending data or Send is called After a socket is closed but reference is still valid? would it throw an exception?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm writing a websocket server using multiple threads, so at anytime two threads could be sending a message to the same socket/websocketsession, but can't figure out whether I should use a lock around Send method OR are these methods thread safe?
Also, these methods don't have any return value, so what happens if the socket is closed by remote side while sending data or Send is called After a socket is closed but reference is still valid? would it throw an exception?
The text was updated successfully, but these errors were encountered: