MCPcopy Index your code
hub / github.com/RustPython/RustPython / _force_close

Method _force_close

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

Source from the content-addressed store, hash-verified

890 self._force_close(exc)
891
892 def _force_close(self, exc):
893 if self._conn_lost:
894 return
895 if self._buffer:
896 self._buffer.clear()
897 self._loop._remove_writer(self._sock_fd)
898 if not self._closing:
899 self._closing = True
900 self._loop._remove_reader(self._sock_fd)
901 self._conn_lost += 1
902 self._loop.call_soon(self._call_connection_lost, exc)
903
904 def _call_connection_lost(self, exc):
905 try:

Callers 2

abortMethod · 0.95
_fatal_errorMethod · 0.95

Calls 4

clearMethod · 0.45
_remove_writerMethod · 0.45
_remove_readerMethod · 0.45
call_soonMethod · 0.45

Tested by

no test coverage detected