aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/constants.py
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-02-15 18:34:00 +0530
committerGitHub <noreply@github.com>2022-02-15 15:04:00 +0200
commit13c10bfb777483c7b02877aab029345a056b809c (patch)
tree4a94952a81baef1c7ceef4edc5f5d5cc6e33e2e9 /Lib/asyncio/constants.py
parent3be1a443ca8e7d4ba85f95b78df5c4122cae9ede (diff)
downloadcpython-13c10bfb777483c7b02877aab029345a056b809c.tar.gz
cpython-13c10bfb777483c7b02877aab029345a056b809c.zip
bpo-44011: New asyncio ssl implementation (#31275)
* bpo-44011: New asyncio ssl implementation Co-Authored-By: Andrew Svetlov <andrew.svetlov@gmail.com> * fix warning * fix typo Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r--Lib/asyncio/constants.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py
index 33feed60e55..f171ead28fe 100644
--- a/Lib/asyncio/constants.py
+++ b/Lib/asyncio/constants.py
@@ -15,10 +15,17 @@ DEBUG_STACK_DEPTH = 10
# The default timeout matches that of Nginx.
SSL_HANDSHAKE_TIMEOUT = 60.0
+# Number of seconds to wait for SSL shutdown to complete
+# The default timeout mimics lingering_time
+SSL_SHUTDOWN_TIMEOUT = 30.0
+
# Used in sendfile fallback code. We use fallback for platforms
# that don't support sendfile, or for TLS connections.
SENDFILE_FALLBACK_READBUFFER_SIZE = 1024 * 256
+FLOW_CONTROL_HIGH_WATER_SSL_READ = 256 # KiB
+FLOW_CONTROL_HIGH_WATER_SSL_WRITE = 512 # KiB
+
# The enum should be here to break circular dependencies between
# base_events and sslproto
class _SendfileMode(enum.Enum):