def connectionRefused(self):
        """
        Called due to error from write in connected mode.

        Note this is a result of ICMP message generated by *previous*
        write.
        """

        Called due to error from write in connected mode.

        Note this is a result of ICMP message generated by *previous*
        write.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/protocol.py