Guido van Rossum | 3317a13 | 2013-11-01 14:12:50 -0700 | [diff] [blame] | 1 | # After the connection is lost, log warnings after this many write()s. |
Guido van Rossum | 27b7c7e | 2013-10-17 13:40:50 -0700 | [diff] [blame] | 2 | LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5 |
Guido van Rossum | 3317a13 | 2013-11-01 14:12:50 -0700 | [diff] [blame] | 3 | |
| 4 | # Seconds to wait before retrying accept(). |
| 5 | ACCEPT_RETRY_DELAY = 1 |
Antoine Pitrou | 921e943 | 2017-11-07 17:23:29 +0100 | [diff] [blame] | 6 | |
| 7 | # Number of stack entries to capture in debug mode. |
Barry Warsaw | c060c7e | 2017-11-07 09:05:15 -0800 | [diff] [blame] | 8 | # The larger the number, the slower the operation in debug mode |
| 9 | # (see extract_stack() in events.py). |
Antoine Pitrou | 921e943 | 2017-11-07 17:23:29 +0100 | [diff] [blame] | 10 | DEBUG_STACK_DEPTH = 10 |