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

Function add_flowcontrol_defaults

Lib/asyncio/sslproto.py:61–79  ·  view source on GitHub ↗
(high, low, kb)

Source from the content-addressed store, hash-verified

59
60
61def add_flowcontrol_defaults(high, low, kb):
62 if high is None:
63 if low is None:
64 hi = kb * 1024
65 else:
66 lo = low
67 hi = 4 * lo
68 else:
69 hi = high
70 if low is None:
71 lo = hi // 4
72 else:
73 lo = low
74
75 if not hi >= lo >= 0:
76 raise ValueError('high (%r) must be >= low (%r) must be >= 0' %
77 (hi, lo))
78
79 return hi, lo
80
81
82class _SSLProtocolTransport(transports._FlowControlMixin,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…