def unregisterProducer(self):
        """
        Stop consuming data from a producer, without disconnecting.
        """
        self.producer = None
        if self.connected and self.disconnecting:
            self.startWriting()

        Stop consuming data from a producer, without disconnecting.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/abstract.py