Guido van Rossum | 27b7c7e | 2013-10-17 13:40:50 -0700 | [diff] [blame] | 1 | """Constants.""" |
| 2 | |
Guido van Rossum | 3317a13 | 2013-11-01 14:12:50 -0700 | [diff] [blame] | 3 | # 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] | 4 | LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5 |
Guido van Rossum | 3317a13 | 2013-11-01 14:12:50 -0700 | [diff] [blame] | 5 | |
| 6 | # Seconds to wait before retrying accept(). |
| 7 | ACCEPT_RETRY_DELAY = 1 |
Antoine Pitrou | 921e943 | 2017-11-07 17:23:29 +0100 | [diff] [blame^] | 8 | |
| 9 | # Number of stack entries to capture in debug mode. |
| 10 | # The large the number, the slower the operation in debug mode |
| 11 | # (see extract_stack() in events.py) |
| 12 | DEBUG_STACK_DEPTH = 10 |