asyncio: Pause accepting whenever accept() returns certain errors. Fixes asyncio issue #78.

This commit is contained in:
Guido van Rossum 2013-11-01 14:12:50 -07:00
parent 2b8fc303ad
commit 3317a13253
3 changed files with 30 additions and 9 deletions

View file

@ -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