now sends connect_ack before creating a client socket. This ensures that no data is sent before the connect_ack.