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

Function _ragged_eof

pymongo/pyopenssl_context.py:99–101  ·  view source on GitHub ↗

Return True if the OpenSSL.SSL.SysCallError is a ragged EOF.

(exc: BaseException)

Source from the content-addressed store, hash-verified

97
98
99def _ragged_eof(exc: BaseException) -> bool:
100 """Return True if the OpenSSL.SSL.SysCallError is a ragged EOF."""
101 return exc.args == (-1, "Unexpected EOF")
102
103
104# https://github.com/pyca/pyopenssl/issues/168

Callers 2

recvMethod · 0.85
recv_intoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected