def _removeConnection(self, key, connection):
        """
        Remove a connection from the cache and disconnect it.
        """
        connection.transport.loseConnection()
        self._connections[key].remove(connection)
        del self._timeouts[connection]

        Remove a connection from the cache and disconnect it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/client.py