ensure connect_ack is sent before client_socket is created