Do not block the thread of the socket. Otherwise it would be disconnected.