def _handleParseError(self):
        """
        Terminates the connection and sets the flag C{self.brokenPeer}.
        """
        self.transport.loseConnection()
        self.brokenPeer = 1

        Terminates the connection and sets the flag C{self.brokenPeer}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/basic.py