def clientConnectionLost(self, connector, reason, reconnecting=0):
        """
        Reconnecting subclasses should call with reconnecting=1.
        """
        if reconnecting:
            # Any pending requests will go to next connection attempt
            # so we don't fail them.
            self._broker = None
            self._root = None
        else:
            self._failAll(reason)

        Reconnecting subclasses should call with reconnecting=1.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/pb.py