MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / recv

Method recv

pymongo/pyopenssl_context.py:151–158  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

149 return self._call(super().do_handshake, *args, **kwargs)
150
151 def recv(self, *args: Any, **kwargs: Any) -> bytes:
152 try:
153 return self._call(super().recv, *args, **kwargs)
154 except _SSL.SysCallError as exc:
155 # Suppress ragged EOFs to match the stdlib.
156 if self.suppress_ragged_eofs and _ragged_eof(exc):
157 return b""
158 raise
159
160 def recv_into(self, *args: Any, **kwargs: Any) -> int:
161 try:

Callers 5

test_topology_resetMethod · 0.80
handleMethod · 0.80
handleMethod · 0.80
kms_requestMethod · 0.80
kms_requestMethod · 0.80

Calls 2

_callMethod · 0.95
_ragged_eofFunction · 0.85

Tested by 3

test_topology_resetMethod · 0.64
handleMethod · 0.64
handleMethod · 0.64