summaryrefslogtreecommitdiff
path: root/Lib/asyncio/constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r--Lib/asyncio/constants.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py
index 79c3b931d2..f9e123281e 100644
--- a/Lib/asyncio/constants.py
+++ b/Lib/asyncio/constants.py
@@ -1,4 +1,7 @@
"""Constants."""
-
+# After the connection is lost, log warnings after this many write()s.
LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5
+
+# Seconds to wait before retrying accept().
+ACCEPT_RETRY_DELAY = 1