MCPcopy
hub / github.com/python-trio/trio / _read_loop

Function _read_loop

src/trio/_dtls.py:665–673  ·  view source on GitHub ↗
(read_fn: Callable[[int], bytes])

Source from the content-addressed store, hash-verified

663
664
665def _read_loop(read_fn: Callable[[int], bytes]) -> bytes:
666 chunks = []
667 while True:
668 try:
669 chunk = read_fn(2**14) # max TLS record size
670 except SSL.WantReadError:
671 break
672 chunks.append(chunk)
673 return b"".join(chunks)
674
675
676async def handle_client_hello_untrusted(

Callers 3

read_volleyMethod · 0.85
sendMethod · 0.85
receiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…