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

Method _on_shutdown_complete

Lib/asyncio/sslproto.py:661–669  ·  view source on GitHub ↗
(self, shutdown_exc)

Source from the content-addressed store, hash-verified

659 self._on_shutdown_complete(None)
660
661 def _on_shutdown_complete(self, shutdown_exc):
662 if self._shutdown_timeout_handle is not None:
663 self._shutdown_timeout_handle.cancel()
664 self._shutdown_timeout_handle = None
665
666 if shutdown_exc:
667 self._fatal_error(shutdown_exc)
668 else:
669 self._loop.call_soon(self._transport.close)
670
671 def _abort(self, exc):
672 self._set_state(SSLProtocolState.UNWRAPPED)

Callers 1

_do_shutdownMethod · 0.95

Calls 3

_fatal_errorMethod · 0.95
cancelMethod · 0.45
call_soonMethod · 0.45

Tested by

no test coverage detected