def bridge(self, sock):
        """Handle bridging data from sock to the other party.

        Returns if the connection should continue.
        """
        self.last_used = time.time()
        if (sock == self.client_socket):
            return self.client_bridge_fn()
        elif sock == self.server_socket:
            return self.server_bridge_fn()
Handle bridging data from sock to the other party.

        Returns if the connection should continue.
        
nogotofail/mitm/connection/connection.py