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

Function _connect_kms

pymongo/synchronous/encryption.py:118–122  ·  view source on GitHub ↗
(address: _Address, opts: PoolOptions)

Source from the content-addressed store, hash-verified

116
117
118def _connect_kms(address: _Address, opts: PoolOptions) -> Union[socket.socket, _sslConn]:
119 try:
120 return _configured_socket(address, opts)
121 except Exception as exc:
122 _raise_connection_failure(address, exc, timeout_details=_get_timeout_details(opts))
123
124
125@contextlib.contextmanager

Callers 1

kms_requestMethod · 0.70

Calls 3

_configured_socketFunction · 0.90
_get_timeout_detailsFunction · 0.90

Tested by

no test coverage detected