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

Function _has_sni

pymongo/ssl_support.py:78–81  ·  view source on GitHub ↗
(is_sync: bool)

Source from the content-addressed store, hash-verified

76 BLOCKING_IO_LOOKUP_ERROR = BLOCKING_IO_READ_ERROR
77
78 def _has_sni(is_sync: bool) -> bool:
79 if is_sync and HAVE_PYSSL:
80 return _pyssl.HAS_SNI
81 return _ssl.HAS_SNI
82
83 def get_ssl_context(
84 certfile: Optional[str],

Callers 3

_async_configured_socketFunction · 0.90
_configured_socketFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected