MCPcopy Index your code
hub / github.com/python/cpython / _fatal_error

Method _fatal_error

Lib/asyncio/sslproto.py:916–929  ·  view source on GitHub ↗
(self, exc, message='Fatal error on transport')

Source from the content-addressed store, hash-verified

914 self._process_outgoing()
915
916 def _fatal_error(self, exc, message='Fatal error on transport'):
917 if self._transport:
918 self._transport._force_close(exc)
919
920 if isinstance(exc, OSError):
921 if self._loop.get_debug():
922 logger.debug("%r: %s", self, message, exc_info=True)
923 elif not isinstance(exc, exceptions.CancelledError):
924 self._loop.call_exception_handler({
925 'message': message,
926 'exception': exc,
927 'transport': self._transport,
928 'protocol': self,
929 })

Callers 13

_on_shutdown_completeMethod · 0.95
_write_appdataMethod · 0.95
_do_readMethod · 0.95
_call_eof_receivedMethod · 0.95
test_fatal_errorMethod · 0.45
test_fatal_errorMethod · 0.45

Calls 4

_force_closeMethod · 0.45
get_debugMethod · 0.45
debugMethod · 0.45