mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
asyncio: Pause accepting whenever accept() returns certain errors. Fixes asyncio issue #78.
This commit is contained in:
parent
2b8fc303ad
commit
3317a13253
3 changed files with 30 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue