Added flush after handshake response has been sent, so that servers can start talking to the clients when a newConneciton signal is received