def dataReceived(self, data):
        """
        Some data was received, so the connection is set up.
        """
        self.inReactorMethod = True
        self.writeAndAbort()
        self.inReactorMethod = False

        Some data was received, so the connection is set up.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_tcp.py