summaryrefslogtreecommitdiff
path: root/Lib/asyncio/constants.py
diff options
context:
space:
mode:
authorNeil Aspinall <mail@neilaspinall.co.uk>2017-12-19 19:45:42 +0000
committerAndrew Svetlov <andrew.svetlov@gmail.com>2017-12-19 21:45:42 +0200
commitf7686c1f5553b24e3307506a18e18f6544de94d3 (patch)
treeeb732724e966a23a7837e824d39a2f7181183798 /Lib/asyncio/constants.py
parent4b965930e8625f77cb0e821daf5cc40e85b45f84 (diff)
downloadcpython-git-f7686c1f5553b24e3307506a18e18f6544de94d3.tar.gz
bpo-29970: Add timeout for SSL handshake in asyncio
10 seconds by default.
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r--Lib/asyncio/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py
index 52169c3f8e..0ad974ff2f 100644
--- a/Lib/asyncio/constants.py
+++ b/Lib/asyncio/constants.py
@@ -8,3 +8,6 @@ ACCEPT_RETRY_DELAY = 1
# The larger the number, the slower the operation in debug mode
# (see extract_stack() in format_helpers.py).
DEBUG_STACK_DEPTH = 10
+
+# Number of seconds to wait for SSL handshake to complete
+SSL_HANDSHAKE_TIMEOUT = 10.0