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
connections: Fix crash when sending data over a closed connection
The problem was a race condition between removing the subscriptions
of the connection from the subscription manager when a connection
is closed and writing sends to the already-closed outgoing channel.
This commit resolves this by guarding writes to the outgoing
channel with a combination of a "closed" flag and a mutex that
synchronizes access to the closed flag and channel close operation.
This fixes#22.
0 commit comments