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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py
new file mode 100644
index 0000000000..f9e123281e
--- /dev/null
+++ b/Lib/asyncio/constants.py
@@ -0,0 +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