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

Method recv_all

Lib/test/test_asyncio/functional.py:123–130  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

121 self.__sock = sock
122
123 def recv_all(self, n):
124 buf = b''
125 while len(buf) < n:
126 data = self.recv(n - len(buf))
127 if data == b'':
128 raise ConnectionAbortedError
129 buf += data
130 return buf
131
132 def start_tls(self, ssl_context, *,
133 server_side=False,

Callers

nothing calls this directly

Calls 1

recvMethod · 0.45

Tested by

no test coverage detected