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

Method _fatal_error

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

Source from the content-addressed store, hash-verified

880 self._server._detach(self)
881
882 def _fatal_error(self, exc, message='Fatal error on transport'):
883 # Should be called from exception handler only.
884 if isinstance(exc, OSError):
885 if self._loop.get_debug():
886 logger.debug("%r: %s", self, message, exc_info=True)
887 else:
888 self._loop.call_exception_handler({
889 'message': message,
890 'exception': exc,
891 'transport': self,
892 'protocol': self._protocol,
893 })
894 self._force_close(exc)
895
896 def _force_close(self, exc):
897 if self._conn_lost:

Callers 9

_read_ready__on_eofMethod · 0.45
writeMethod · 0.45
_write_sendmsgMethod · 0.45
_write_sendMethod · 0.45
_read_readyMethod · 0.45
sendtoMethod · 0.45
_sendto_readyMethod · 0.45

Calls 4

_force_closeMethod · 0.95
get_debugMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected