def _on_server_connected(self):
        """Called when the socket.connect to the server completes"""
        self._connected = True
        self.server_bridge_fn = self._bridge_server
        self.client_bridge_fn = self._bridge_client

        # Check if the connection is now ready to be used
        if not self._blame_in_progress:
            self._on_connection_ready()
        else:
            self.set_select_fds()
Called when the socket.connect to the server completes
nogotofail/mitm/connection/connection.py