I am not sure how your server is multi-threaded - it creates a single thread to handle all IO from the clients, who then both continually try to connect in an infinite while loop, and once one does...