...
This hash table will be cleaned very slowly. If a client talks to a server that is unaware of its client ID, this is because the client has been offline for too long; the client will be instructed to crash.
What about multi-threaded clients or clients doing asynchronous requests?