diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-01 14:12:50 -0700 |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-01 14:12:50 -0700 |
commit | 3317a1325385a6b7a4a208e0d00c43e9e8ac562e (patch) | |
tree | 495eec1e8c8d00e1e8238ca4bd2f1d1ff58bb77a /Lib/asyncio/constants.py | |
parent | 2b8fc303ad60894bf76b76f82e774b2c7e9f1702 (diff) | |
download | cpython-git-3317a1325385a6b7a4a208e0d00c43e9e8ac562e.tar.gz |
asyncio: Pause accepting whenever accept() returns certain errors. Fixes asyncio issue #78.
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r-- | Lib/asyncio/constants.py | 5 |
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 |