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

Method do

Lib/test/test_asyncio/test_ssl.py:1108–1119  ·  view source on GitHub ↗
(func, *args)

Source from the content-addressed store, hash-verified

1106 sslobj = client_sslctx_2.wrap_bio(incoming, outgoing)
1107
1108 def do(func, *args):
1109 while True:
1110 try:
1111 rv = func(*args)
1112 break
1113 except ssl.SSLWantReadError:
1114 if outgoing.pending:
1115 sock.send(outgoing.read())
1116 incoming.write(sock.recv(65536))
1117 if outgoing.pending:
1118 sock.send(outgoing.read())
1119 return rv
1120
1121 do(sslobj.do_handshake)
1122

Callers

nothing calls this directly

Calls 5

funcFunction · 0.70
sendMethod · 0.45
readMethod · 0.45
writeMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected