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

Method connection_made

Lib/test/test_asyncio/test_ssl.py:1074–1087  ·  view source on GitHub ↗
(self, transport)

Source from the content-addressed store, hash-verified

1072
1073 class ServerProtocol(asyncio.StreamReaderProtocol):
1074 def connection_made(self, transport):
1075 super_ = super()
1076 transport.pause_reading()
1077 fut = self._loop.create_task(self._loop.start_tls(
1078 transport, self, sslctx_2, server_side=True))
1079
1080 def cb(_):
1081 try:
1082 tr = fut.result()
1083 except Exception as ex:
1084 super_.connection_lost(ex)
1085 else:
1086 super_.connection_made(tr)
1087 fut.add_done_callback(cb)
1088
1089 def server_protocol_factory():
1090 reader = asyncio.StreamReader()

Callers

nothing calls this directly

Calls 5

superClass · 0.85
pause_readingMethod · 0.45
create_taskMethod · 0.45
start_tlsMethod · 0.45
add_done_callbackMethod · 0.45

Tested by

no test coverage detected