MCPcopy Index your code
hub / github.com/python/cpython / _create_transport_context

Function _create_transport_context

Lib/asyncio/sslproto.py:47–58  ·  view source on GitHub ↗
(server_side, server_hostname)

Source from the content-addressed store, hash-verified

45
46
47def _create_transport_context(server_side, server_hostname):
48 if server_side:
49 raise ValueError('Server side SSL needs a valid SSLContext')
50
51 # Client side may pass ssl=True to use a default
52 # context; in that case the sslcontext passed is None.
53 # The default is secure for client connections.
54 # Python 3.4+: use up-to-date strong settings.
55 sslcontext = ssl.create_default_context()
56 if not server_hostname:
57 sslcontext.check_hostname = False
58 return sslcontext
59
60
61def add_flowcontrol_defaults(high, low, kb):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…