Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(endpoint): Check PID invariant in FindConnectionByPID
An expected invariant of this system is that StateConnected connections also have a PID, and other states do *not* have a PID. While any code that breaks this invariant is buggy, we can still make FindConnectionByPID resilient to this to prevent that type of bug from taking the whole server down. That type of bug can still be detected through explicit testing of the Connections map.
- Loading branch information