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

Method connection_lost

Lib/asyncio/streams.py:259–274  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

257 self._strong_reader = None
258
259 def connection_lost(self, exc):
260 reader = self._stream_reader
261 if reader is not None:
262 if exc is None:
263 reader.feed_eof()
264 else:
265 reader.set_exception(exc)
266 if not self._closed.done():
267 if exc is None:
268 self._closed.set_result(None)
269 else:
270 self._closed.set_exception(exc)
271 super().connection_lost(exc)
272 self._stream_reader_wr = None
273 self._task = None
274 self._transport = None
275
276 def data_received(self, data):
277 reader = self._stream_reader

Callers

nothing calls this directly

Calls 6

superClass · 0.85
feed_eofMethod · 0.80
set_exceptionMethod · 0.45
doneMethod · 0.45
set_resultMethod · 0.45
connection_lostMethod · 0.45

Tested by

no test coverage detected