(self, exc)
Called when the low-level connection is lost or closed.

        The argument is an exception object or None (the latter
        meaning a regular EOF is received or the connection was
        aborted or closed).
Called when the low-level connection is lost or closed.
Called when the low - level connection is lost or closed .
def connection_lost(self, exc):
        """Called when the low-level connection is lost or closed.

        The argument is an exception object or None (the latter
        meaning a regular EOF is received or the connection was
        aborted or closed).
        """
        if self._session_established:
            self._session_established = False
            self._loop.call_soon(self._app_protocol.connection_lost, exc)
        else:
            # Most likely an exception occurred while in SSL handshake.
            # Just mark the app transport as closed so that its __del__
            # doesn't complain.
            if self._app_transport is not None:
                self._app_transport._closed = True
        self._transport = None
        self._app_transport = None
        if getattr(self, '_handshake_timeout_handle', None):
            self._handshake_timeout_handle.cancel()
        self._wakeup_waiter(exc)
        self._app_protocol = None
        self._sslpipe = None
def connection_lost ( self , exc ) : if self . _session_established : self . _session_established = False self . _loop . call_soon ( self . _app_protocol . connection_lost , exc ) else : # Most likely an exception occurred while in SSL handshake. # Just mark the app transport as closed so that its __del__ # doesn't complain. if self . _app_transport is not None : self . _app_transport . _closed = True self . _transport = None self . _app_transport = None if getattr ( self , '_handshake_timeout_handle' , None ) : self . _handshake_timeout_handle . cancel ( ) self . _wakeup_waiter ( exc ) self . _app_protocol = None self . _sslpipe = None