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

Method handle_client

Lib/test/test_asyncio/test_streams.py:627–632  ·  view source on GitHub ↗
(self, client_reader, client_writer)

Source from the content-addressed store, hash-verified

625 self.loop = loop
626
627 async def handle_client(self, client_reader, client_writer):
628 data = await client_reader.readline()
629 client_writer.write(data)
630 await client_writer.drain()
631 client_writer.close()
632 await client_writer.wait_closed()
633
634 def start(self):
635 sock = socket.create_server(('127.0.0.1', 0))

Callers 1

Calls 7

readlineMethod · 0.45
writeMethod · 0.45
drainMethod · 0.45
closeMethod · 0.45
wait_closedMethod · 0.45
get_extra_infoMethod · 0.45
start_tlsMethod · 0.45

Tested by

no test coverage detected