In load testing Atmo, I found a spurious panic caused by the podConnection's messageChan being written to after closing, which means that the atomic.Value we were using to detect disconnections was not cutting it.
This PR replaces it with a RWMutex to improve the concurrency safety of the podConnection
In load testing Atmo, I found a spurious panic caused by the podConnection's messageChan being written to after closing, which means that the
atomic.Value
we were using to detect disconnections was not cutting it.This PR replaces it with a RWMutex to improve the concurrency safety of the podConnection