The client gets response from the server so fast that before the thread starts running.
At the moment when the response arrives, the event loop of the thread has not started yet, so you can not receive the signal.
Try to sleep some time before you start sending message to the server.