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

Method _call_connection_lost

Lib/asyncio/selector_events.py:909–921  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

907 self._call_soon(self._call_connection_lost, exc)
908
909 def _call_connection_lost(self, exc):
910 try:
911 if self._protocol_connected:
912 self._protocol.connection_lost(exc)
913 finally:
914 self._sock.close()
915 self._sock = None
916 self._protocol = None
917 self._loop = None
918 server = self._server
919 if server is not None:
920 server._detach(self)
921 self._server = None
922
923 def get_write_buffer_size(self):
924 return self._buffer_size

Calls 3

connection_lostMethod · 0.45
closeMethod · 0.45
_detachMethod · 0.45