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

Method recv_into

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

Source from the content-addressed store, hash-verified

158 raise
159
160 def recv_into(self, *args: Any, **kwargs: Any) -> int:
161 try:
162 return self._call(super().recv_into, *args, **kwargs)
163 except _SSL.SysCallError as exc:
164 # Suppress ragged EOFs to match the stdlib.
165 if self.suppress_ragged_eofs and _ragged_eof(exc):
166 return 0
167 raise
168
169 def sendall(self, buf: bytes, flags: int = 0) -> None: # type: ignore[override]
170 view = memoryview(buf)

Callers

nothing calls this directly

Calls 2

_callMethod · 0.95
_ragged_eofFunction · 0.85

Tested by

no test coverage detected