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
In the handleWSConn function, the goroutine calls c.WriteMessage and the other for loop also calls c.WriteMessage. But according to Gorilla WS doc, WriteMessage is not goroutine safe. We need to use a mutex to protect concurrent writes.
I saw a couple of goroutine panics because of this while doing some light stress tests.
The text was updated successfully, but these errors were encountered:
In the
handleWSConn
function, the goroutine callsc.WriteMessage
and the other for loop also callsc.WriteMessage
. But according to Gorilla WS doc,WriteMessage
is not goroutine safe. We need to use a mutex to protect concurrent writes.I saw a couple of goroutine panics because of this while doing some light stress tests.
The text was updated successfully, but these errors were encountered: