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

Method server

Lib/test/test_asyncio/test_sslproto.py:679–686  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

677 server_side_aborted = False
678
679 def server(sock):
680 nonlocal server_side_aborted
681 try:
682 sock.recv_all(1024 * 1024)
683 except ConnectionAbortedError:
684 server_side_aborted = True
685 finally:
686 sock.close()
687
688 async def client(addr):
689 await asyncio.wait_for(

Callers

nothing calls this directly

Calls 6

recv_allMethod · 0.45
closeMethod · 0.45
start_tlsMethod · 0.45
dupMethod · 0.45
sendallMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected