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

Method connection_lost

Lib/test/test_asyncio/test_ssl.py:64–68  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

62 self.state = 'EOF'
63
64 def connection_lost(self, exc):
65 assert self.state in ('CONNECTED', 'EOF'), self.state
66 self.state = 'CLOSED'
67 if self.done:
68 self.done.set_result(None)
69
70
71class MessageOutFilter(logging.Filter):

Callers 7

test_closeMethod · 0.45
connection_lostMethod · 0.45
cbMethod · 0.45

Calls 1

set_resultMethod · 0.45

Tested by

no test coverage detected