The bind_tcp method has a race condition. The client is removed from the hashmap and and back to it across an await() boundary. This leaves the client map inconsistent when execution awaits at the await point (the client exists but cannot be found in the map).
Since the newly introduced WebSockets examples rely on the same patterns as TCP, they also have the same race condition.
The bind_tcp method has a race condition. The client is removed from the hashmap and and back to it across an
await()
boundary. This leaves the client map inconsistent when execution awaits at the await point (the client exists but cannot be found in the map).Since the newly introduced WebSockets examples rely on the same patterns as TCP, they also have the same race condition.