MCPcopy Index your code
hub / github.com/RustPython/RustPython / server

Method server

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

Source from the content-addressed store, hash-verified

680 server_side_aborted = False
681
682 def server(sock):
683 nonlocal server_side_aborted
684 try:
685 sock.recv_all(1024 * 1024)
686 except ConnectionAbortedError:
687 server_side_aborted = True
688 finally:
689 sock.close()
690
691 async def client(addr):
692 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