Language: C / C++. The pull request has one bug. You get three tries to find the line, then a short debrief.
A user could close the chat while their last message was still being written to the socket, and the write finished on a destroyed Session. Now the write's callback holds a shared_ptr to the session, so the session lives until its message is out.
Codetrap needs JavaScript: the code review happens in your browser.